3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
41 lines
831 B
Nix
41 lines
831 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "entry-points-txt";
|
|
version = "0.2.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jwodder";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-klFSt3Od7xYgenpMP4DBFoZeQanGrmtJxDm5qeZ1Psc=";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace tox.ini \
|
|
--replace " --cov=entry_points_txt --no-cov-on-fail" ""
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|