1{ lib
2, fetchPypi
3, buildPythonPackage
4, pythonOlder
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "semantic-version";
10 version = "2.10.0";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 pname = "semantic_version";
17 inherit version;
18 hash = "sha256-vau20zaZjLs3jUuds6S1ah4yNXAdwF6iaQ2amX7VBBw=";
19 };
20
21 nativeCheckInputs = [
22 pytestCheckHook
23 ];
24
25 pythonImportsCheck = [
26 "semantic_version"
27 ];
28
29 meta = with lib; {
30 description = "A library implementing the 'SemVer' scheme";
31 homepage = "https://github.com/rbarrois/python-semanticversion/";
32 license = licenses.bsd2;
33 maintainers = with maintainers; [ layus makefu ];
34 };
35}