summary refs log tree commit diff
path: root/pkgs/development/python-modules/semver/default.nix
blob: 71ec776db7c425070b9ba9e4b136b223ed709807 (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
{ lib, stdenv
, fetchFromGitHub
, buildPythonPackage
, pytestCheckHook
, pytestcov
}:

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

  src = fetchFromGitHub {
    owner = "python-semver";
    repo = "python-semver";
    rev = version;
    sha256 = "0yxjmcgk5iwp53l9z1cg0ajrj18i09ircs11ifpdrggzm8n1blf3";
  };

  preCheck = "rm -rf dist"; # confuses source vs dist imports in pytest
  checkInputs = [ pytestCheckHook pytestcov ];

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