1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pytest-cov-stub,
7 pythonOlder,
8 setuptools,
9 setuptools-scm,
10}:
11
12buildPythonPackage rec {
13 pname = "semver";
14 version = "3.0.4";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "python-semver";
21 repo = "python-semver";
22 tag = version;
23 hash = "sha256-ry6r2cY/DRTiPxT+ZiumgFbQyHNzL8i1QcQbLWjnDVE=";
24 };
25
26 build-system = [
27 setuptools
28 setuptools-scm
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 pytest-cov-stub
34 ];
35
36 pythonImportsCheck = [ "semver" ];
37
38 meta = with lib; {
39 description = "Python package to work with Semantic Versioning (http://semver.org/)";
40 homepage = "https://python-semver.readthedocs.io/";
41 changelog = "https://github.com/python-semver/python-semver/releases/tag/3.0.0";
42 license = licenses.bsd3;
43 maintainers = with maintainers; [ np ];
44 mainProgram = "pysemver";
45 };
46}