depot/third_party/nixpkgs/pkgs/development/python-modules/univers/default.nix

72 lines
1.3 KiB
Nix
Raw Normal View History

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