1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 02:00:41 +03:00
nixpkgs/pkgs/development/python-modules/semver/default.nix

36 lines
742 B
Nix
Raw Normal View History

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