about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/semver/default.nix
blob: cb4578671b98bf605ef3239dd2f0e44b2825f3a5 (plain) (blame)
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
33
34
35
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-cov
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "semver";
  version = "2.13.0";

  src = fetchFromGitHub {
    owner = "python-semver";
    repo = "python-semver";
    rev = version;
    sha256 = "sha256-IWTo/P9JRxBQlhtcH3JMJZZrwAA8EALF4dtHajWUc4w=";
  };

  checkInputs = [
    pytest-cov
    pytestCheckHook
  ];

  # Confuses source vs dist imports in pytest
  preCheck = "rm -r dist";

  pythonImportsCheck = [ "semver" ];

  meta = with lib; {
    description = "Python package to work with Semantic Versioning (http://semver.org/)";
    homepage = "https://python-semver.readthedocs.io/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ np ];
  };
}