2022-05-12 08:23:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, toml
|
|
|
|
, pyyaml
|
2022-12-25 11:07:10 +00:00
|
|
|
, packvers
|
2022-05-12 08:23:13 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dparse2";
|
2022-12-25 11:07:10 +00:00
|
|
|
version = "0.7.0";
|
2022-05-12 08:23:13 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nexB";
|
|
|
|
repo = pname;
|
2022-12-25 10:43:28 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-12-25 11:07:10 +00:00
|
|
|
hash = "sha256-JUTL+SVf1RRIXQqwFR7MnExsgGseSiO0a5YzzcqdXHw=";
|
2022-05-12 08:23:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
toml
|
|
|
|
pyyaml
|
2022-12-25 11:07:10 +00:00
|
|
|
packvers
|
2022-05-12 08:23:13 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-05-12 08:23:13 +00:00
|
|
|
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";
|
2022-12-25 10:43:28 +00:00
|
|
|
changelog = "https://github.com/nexB/dparse2/blob/${version}/CHANGELOG.rst";
|
2022-05-12 08:23:13 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|