1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, toml
6, pyyaml
7, packaging
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "dparse2";
13 version = "0.6.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "nexB";
20 repo = pname;
21 rev = version;
22 hash = "sha256-1tbNW7Gy7gvMnETdAM2ahHiwbhG9qvdYZggia1+7eGo=";
23 };
24
25 propagatedBuildInputs = [
26 toml
27 pyyaml
28 packaging
29 ];
30
31 checkInputs = [
32 pytestCheckHook
33 ];
34
35 disabledTestPaths = [
36 # Requries pipenv
37 "tests/test_parse.py"
38 ];
39
40 pythonImportsCheck = [
41 "dparse2"
42 ];
43
44 meta = with lib; {
45 description = "Module to parse Python dependency files";
46 homepage = "https://github.com/nexB/dparse2";
47 license = licenses.mit;
48 maintainers = with maintainers; [ fab ];
49 };
50}