2021-11-01 01:45:08 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-06-05 21:55:12 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-09-19 03:11:01 +00:00
|
|
|
, setuptools
|
2021-11-01 01:45:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "entry-points-txt";
|
2022-06-05 21:55:12 +00:00
|
|
|
version = "0.2.0";
|
|
|
|
format = "pyproject";
|
2021-11-01 01:45:08 +00:00
|
|
|
|
2022-06-05 21:55:12 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jwodder";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-klFSt3Od7xYgenpMP4DBFoZeQanGrmtJxDm5qeZ1Psc=";
|
2021-11-01 01:45:08 +00:00
|
|
|
};
|
|
|
|
|
2022-09-19 03:11:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-05 21:55:12 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tox.ini \
|
|
|
|
--replace " --cov=entry_points_txt --no-cov-on-fail" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"entry_points_txt"
|
|
|
|
];
|
|
|
|
|
2021-11-01 01:45:08 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Read & write entry_points.txt files";
|
2022-06-05 21:55:12 +00:00
|
|
|
homepage = "https://github.com/jwodder/entry-points-txt";
|
2021-11-01 01:45:08 +00:00
|
|
|
license = with licenses; [ mit ];
|
2022-06-05 21:55:12 +00:00
|
|
|
maintainers = with maintainers; [ ayazhafiz ];
|
2021-11-01 01:45:08 +00:00
|
|
|
};
|
|
|
|
}
|