nixpkgs/pkgs/development/python-modules/semver/default.nix

29 lines
701 B
Nix
Raw Normal View History

{ lib
2020-07-02 03:51:41 +01:00
, fetchFromGitHub
, buildPythonPackage
, pytestCheckHook
, pytestcov
}:
2020-07-02 03:51:41 +01:00
buildPythonPackage rec {
pname = "semver";
2020-07-02 03:51:41 +01:00
version = "2.10.2";
2017-12-25 19:23:10 +00:00
src = fetchFromGitHub {
2020-07-02 03:51:41 +01:00
owner = "python-semver";
2017-12-25 19:23:10 +00:00
repo = "python-semver";
2020-07-02 03:51:41 +01:00
rev = version;
sha256 = "0yxjmcgk5iwp53l9z1cg0ajrj18i09ircs11ifpdrggzm8n1blf3";
};
2020-07-02 03:51:41 +01:00
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/)";
2020-07-02 03:51:41 +01:00
homepage = "https://python-semver.readthedocs.io/en/latest/";
license = licenses.bsd3;
maintainers = with maintainers; [ np ];
};
}