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

68 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.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-IJeM9Nzfqs1B0xP43i6u65XSEVPdiGhXWuORglbNARI=";
};
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 ];
};
}