pythonPackages.semver: 2.8.1 -> 2.10.2

This commit is contained in:
Drew Risinger 2020-07-01 22:51:41 -04:00
parent 736c7ca712
commit 5818654847

View File

@ -1,24 +1,27 @@
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
{ stdenv
, fetchFromGitHub
, buildPythonPackage
, pytestCheckHook
, pytestcov
}:
buildPythonPackage {
buildPythonPackage rec {
pname = "semver";
version = "2.8.1";
version = "2.10.2";
src = fetchFromGitHub {
owner = "k-bx";
owner = "python-semver";
repo = "python-semver";
rev = "41775dd5f143dfa6ca94885056c9ef5b3ed4e6e1"; # not tagged in repository
sha256 = "1rqaakha4sw06k9h0h4g1wmk66zkmhpq92y2rw0kyfpp6xk1zbk2";
rev = version;
sha256 = "0yxjmcgk5iwp53l9z1cg0ajrj18i09ircs11ifpdrggzm8n1blf3";
};
checkInputs = [ pytest ];
checkPhase = ''
py.test
'';
preCheck = "rm -rf dist"; # confuses source vs dist imports in pytest
checkInputs = [ pytestCheckHook pytestcov ];
meta = with stdenv.lib; {
description = "Python package to work with Semantic Versioning (http://semver.org/)";
homepage = "https://github.com/k-bx/python-semver";
homepage = "https://python-semver.readthedocs.io/en/latest/";
license = licenses.bsd3;
maintainers = with maintainers; [ np ];
};