depot/third_party/nixpkgs/pkgs/development/python-modules/univers/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

67 lines
1.3 KiB
Nix

{ 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 ];
};
}