nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 70 lines 1.3 kB view raw
1{ 2 lib, 3 attrs, 4 buildPythonPackage, 5 commoncode, 6 fetchPypi, 7 packaging, 8 pytestCheckHook, 9 saneyaml, 10 semantic-version, 11 semver, 12 setuptools, 13 setuptools-scm, 14}: 15 16buildPythonPackage rec { 17 pname = "univers"; 18 version = "31.1.0"; 19 pyproject = true; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-XGF+3QNlfwLdqoTbC2ahETSqYE/gSwbnyChIPwicnaY="; 24 }; 25 26 build-system = [ 27 setuptools 28 setuptools-scm 29 ]; 30 31 dependencies = [ 32 attrs 33 packaging 34 semantic-version 35 semver 36 ]; 37 38 nativeCheckInputs = [ 39 commoncode 40 pytestCheckHook 41 saneyaml 42 ]; 43 44 dontConfigure = true; # ./configure tries to setup virtualenv and downloads dependencies 45 46 pythonImportsCheck = [ "univers" ]; 47 48 disabledTests = [ 49 # No value for us 50 "test_codestyle" 51 # AssertionError starting with 30.10.0 52 "test_enhanced_semantic_version" 53 "test_semver_version" 54 ]; 55 56 meta = { 57 description = "Library for parsing version ranges and expressions"; 58 homepage = "https://github.com/aboutcode-org/univers"; 59 changelog = "https://github.com/aboutcode-org/univers/blob/v${version}/CHANGELOG.rst"; 60 license = with lib.licenses; [ 61 asl20 62 bsd3 63 mit 64 ]; 65 maintainers = with lib.maintainers; [ 66 armijnhemel 67 sbruder 68 ]; 69 }; 70}