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

36 lines
742 B
Nix
Raw Normal View History

{ lib
2020-07-02 02:51:41 +00:00
, buildPythonPackage
, fetchFromGitHub
, pytest-cov
2020-07-02 02:51:41 +00:00
, pytestCheckHook
}:
2020-07-02 02:51:41 +00:00
buildPythonPackage rec {
pname = "semver";
version = "2.13.0";
2017-12-25 19:23:10 +00:00
src = fetchFromGitHub {
2020-07-02 02:51:41 +00:00
owner = "python-semver";
2017-12-25 19:23:10 +00:00
repo = "python-semver";
2020-07-02 02:51:41 +00:00
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 ];
};
}