1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "entry-points-txt";
12 version = "0.2.0";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "jwodder";
19 repo = pname;
20 rev = "v${version}";
21 hash = "sha256-klFSt3Od7xYgenpMP4DBFoZeQanGrmtJxDm5qeZ1Psc=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 postPatch = ''
29 substituteInPlace tox.ini \
30 --replace " --cov=entry_points_txt --no-cov-on-fail" ""
31 '';
32
33 pythonImportsCheck = [ "entry_points_txt" ];
34
35 meta = with lib; {
36 description = "Read & write entry_points.txt files";
37 homepage = "https://github.com/jwodder/entry-points-txt";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ ayazhafiz ];
40 };
41}