python.pkgs.semver: run tests

This commit is contained in:
Robin Gloster 2017-12-25 20:23:10 +01:00
parent d86128cdf7
commit ade98dc442
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF

View File

@ -1,17 +1,19 @@
{ stdenv, fetchPypi, buildPythonPackage }: { stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
buildPythonPackage rec { buildPythonPackage rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
pname = "semver"; pname = "semver";
version = "2.7.9"; version = "2.7.9";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "k-bx";
sha256 = "1ffb55fb86a076cf7c161e6b5931f7da59f15abe217e0f24cea96cc8eec50f42"; repo = "python-semver";
rev = "2001c62d1a0361c44acc7076d8ce91e1d1c66141"; # not tagged in repository
sha256 = "01c05sv97dyr672sa0nr3fnh2aqbmvkfw19d6rkaj16h2sdsyg0i";
}; };
# No tests in archive checkInputs = [ pytest ];
doCheck = false; checkPhase = "pytest -v tests.py";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Python package to work with Semantic Versioning (http://semver.org/)"; description = "Python package to work with Semantic Versioning (http://semver.org/)";