14 buildPythonPackage rec {
19 disabled = pythonOlder "3.6";
22 inherit pname version;
23 hash = "sha256-J7uLS8rv7DmXaXuj9uBrJEcgC6JzwLCFw9ASoEVxtSg=";
28 name = "fix-configparser-deprecation-warning.patch";
29 url = "https://github.com/pyupio/dparse/pull/69.patch";
30 hash = "sha256-RolD6xDJpI8/UHgAdcsXoyxOGLok7AogLMOTl1ZPKvw=";
34 nativeBuildInputs = [ setuptools ];
36 propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
38 optional-dependencies = {
39 # FIXME pipenv = [ pipenv ];
45 ] ++ lib.flatten (lib.attrValues optional-dependencies);
47 pythonImportsCheck = [ "dparse" ];
50 # requires unpackaged dependency pipenv
55 description = "Parser for Python dependency files";
56 homepage = "https://github.com/pyupio/dparse";
57 changelog = "https://github.com/pyupio/dparse/blob/${version}/HISTORY.rst";
58 license = licenses.mit;
59 maintainers = with maintainers; [ thomasdesr ];