3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/hatch-requirements-txt/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

46 lines
964 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, hatch
, hatchling
, packaging
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "hatch-requirements-txt";
version = "0.3.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "repo-helper";
repo = "hatch-requirements-txt";
rev = "refs/tags/v${version}";
hash = "sha256-Gyt5Fs8uqVe0cOKtxFeg1n1WMyeK5Iokh71ynb2i5cM=";
};
nativeBuildInputs = [
hatch
];
propagatedBuildInputs = [
hatchling
packaging
];
doCheck = false; # missing coincidence dependency
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
changelog = "https://github.com/repo-helper/hatch-requirements-txt/releases/tag/${version}";
description = "Hatchling plugin to read project dependencies from requirements.txt";
homepage = "https://github.com/repo-helper/hatch-requirements-txt";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}