159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
attrs,
|
|
buildPythonPackage,
|
|
commoncode,
|
|
fetchPypi,
|
|
packaging,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
saneyaml,
|
|
semantic-version,
|
|
semver,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "univers";
|
|
version = "30.12.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-whuUM3IHnuK5bkXJ8SPrMoO3cRnm0yxKBPxBSfeQIFY=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
attrs
|
|
packaging
|
|
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/aboutcode-org/univers";
|
|
changelog = "https://github.com/aboutcode-org/univers/blob/v${version}/CHANGELOG.rst";
|
|
license = with licenses; [
|
|
asl20
|
|
bsd3
|
|
mit
|
|
];
|
|
maintainers = with maintainers; [
|
|
armijnhemel
|
|
sbruder
|
|
];
|
|
};
|
|
}
|