summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/semantic-version/default.nix
blob: c4db43adc3d013a7146349ac82596a10be5387a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  lib,
  fetchPypi,
  buildPythonPackage,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "semantic-version";
  version = "2.10.0";
  format = "setuptools";

  src = fetchPypi {
    pname = "semantic_version";
    inherit version;
    hash = "sha256-vau20zaZjLs3jUuds6S1ah4yNXAdwF6iaQ2amX7VBBw=";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "semantic_version" ];

  meta = {
    description = "Library implementing the 'SemVer' scheme";
    homepage = "https://github.com/rbarrois/python-semanticversion/";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [
      layus
      makefu
    ];
  };
}