2025-01-27 10:55:19 +01:00

41 lines
812 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-cov-stub,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "entry-points-txt";
version = "0.2.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jwodder";
repo = pname;
tag = "v${version}";
hash = "sha256-hIUXxBJ0XSB4FrNZJdofJ1gTTncILNq9Xh+iAV1CD0s=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "entry_points_txt" ];
meta = with lib; {
description = "Read & write entry_points.txt files";
homepage = "https://github.com/jwodder/entry-points-txt";
license = with licenses; [ mit ];
maintainers = with maintainers; [ ayazhafiz ];
};
}