mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
python.pkgs.semver: run tests
This commit is contained in:
parent
d86128cdf7
commit
ade98dc442
@ -1,17 +1,19 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage }:
|
||||
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "semver";
|
||||
version = "2.7.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1ffb55fb86a076cf7c161e6b5931f7da59f15abe217e0f24cea96cc8eec50f42";
|
||||
src = fetchFromGitHub {
|
||||
owner = "k-bx";
|
||||
repo = "python-semver";
|
||||
rev = "2001c62d1a0361c44acc7076d8ce91e1d1c66141"; # not tagged in repository
|
||||
sha256 = "01c05sv97dyr672sa0nr3fnh2aqbmvkfw19d6rkaj16h2sdsyg0i";
|
||||
};
|
||||
|
||||
# No tests in archive
|
||||
doCheck = false;
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = "pytest -v tests.py";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python package to work with Semantic Versioning (http://semver.org/)";
|
||||
|
Loading…
Reference in New Issue
Block a user