python310Packages.univers: 30.7.0 -> 30.10.0

Changelog: https://github.com/nexB/univers/blob/v30.10.0/CHANGELOG.rst
This commit is contained in:
Fabian Affolter 2023-05-04 10:27:43 +02:00
parent c54779686e
commit 71495d99b1

View File

@ -2,7 +2,6 @@
, attrs
, buildPythonPackage
, commoncode
, fetchpatch
, fetchPypi
, packaging
, pyparsing
@ -16,25 +15,16 @@
buildPythonPackage rec {
pname = "univers";
version = "30.7.0";
version = "30.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-yM0SDBpkiZEbaZ0ugjiMwwUFKqZGbmh1JNlv5qvPAYo=";
hash = "sha256-IJeM9Nzfqs1B0xP43i6u65XSEVPdiGhXWuORglbNARI=";
};
patches = [
# Make tests work when not using virtualenv, can be dropped with the next version
# Upstream PR (already merged): https://github.com/nexB/univers/pull/77
(fetchpatch {
url = "https://github.com/nexB/univers/commit/b74229cc1c8790287633cd7220d6b2e97c508302.patch";
hash = "sha256-i6zWv9rAlwCMghd9g5FP6WIQLLDLYvp+6qJ1E7nfTSY=";
})
];
nativeBuildInputs = [
setuptools-scm
];
@ -55,14 +45,18 @@ buildPythonPackage rec {
dontConfigure = true; # ./configure tries to setup virtualenv and downloads dependencies
disabledTests = [
"test_codestyle"
];
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";