nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pytestCheckHook
6, pythonOlder
7, types-setuptools
8}:
9
10buildPythonPackage rec {
11 pname = "requirements-parser";
12 version = "0.5.0";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "madpah";
19 repo = pname;
20 rev = "v${version}";
21 sha256 = "sha256-e2dfVBMh1uGRMDw7OdPefO4/eRxc3BGwvy/D7u5ipkk=";
22 };
23
24 nativeBuildInputs = [
25 poetry-core
26 ];
27
28 propagatedBuildInputs = [
29 types-setuptools
30 ];
31
32 checkInputs = [
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [
37 "requirements"
38 ];
39
40 meta = with lib; {
41 description = "Pip requirements file parser";
42 homepage = "https://github.com/davidfischer/requirements-parser";
43 license = licenses.bsd2;
44 maintainers = teams.determinatesystems.members;
45 };
46}