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