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