a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
51 lines
937 B
Nix
51 lines
937 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, toml
|
|
, pyyaml
|
|
, packvers
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dparse2";
|
|
version = "0.7.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nexB";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-JUTL+SVf1RRIXQqwFR7MnExsgGseSiO0a5YzzcqdXHw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
toml
|
|
pyyaml
|
|
packvers
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Requries pipenv
|
|
"tests/test_parse.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"dparse2"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module to parse Python dependency files";
|
|
homepage = "https://github.com/nexB/dparse2";
|
|
changelog = "https://github.com/nexB/dparse2/blob/${version}/CHANGELOG.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|