2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, attrs
|
2023-05-24 13:37:59 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, commoncode
|
|
|
|
, fetchPypi
|
2022-08-21 13:32:41 +00:00
|
|
|
, packaging
|
|
|
|
, pyparsing
|
|
|
|
, pytestCheckHook
|
2023-05-24 13:37:59 +00:00
|
|
|
, pythonOlder
|
2022-08-21 13:32:41 +00:00
|
|
|
, saneyaml
|
2023-05-24 13:37:59 +00:00
|
|
|
, semantic-version
|
|
|
|
, semver
|
|
|
|
, setuptools-scm
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "univers";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "30.11.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-xyrg8B+C5xUN8zHLrMbAe/MWjZb8fCL0MIAz2w4B7/U=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
packaging
|
|
|
|
pyparsing
|
|
|
|
semantic-version
|
|
|
|
semver
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
commoncode
|
|
|
|
pytestCheckHook
|
|
|
|
saneyaml
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
dontConfigure = true; # ./configure tries to setup virtualenv and downloads dependencies
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"univers"
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
# No value for us
|
|
|
|
"test_codestyle"
|
|
|
|
# AssertionError starting with 30.10.0
|
|
|
|
"test_enhanced_semantic_version"
|
|
|
|
"test_semver_version"
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for parsing version ranges and expressions";
|
|
|
|
homepage = "https://github.com/nexB/univers";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/nexB/univers/blob/v${version}/CHANGELOG.rst";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = with licenses; [ asl20 bsd3 mit ];
|
|
|
|
maintainers = with maintainers; [ armijnhemel sbruder ];
|
|
|
|
};
|
|
|
|
}
|