2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatchling,
|
|
|
|
packaging,
|
|
|
|
pytestCheckHook,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hatch-requirements-txt";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.4.1";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "repo-helper";
|
|
|
|
repo = "hatch-requirements-txt";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-Kd3rDfTBn/t/NiSJMPkHRWD5solUF7MAN8EiZokxHrk=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # missing coincidence dependency
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
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; [ ];
|
|
|
|
};
|
|
|
|
}
|