mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +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 {
|
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/)";
|
||||||
|
Loading…
Reference in New Issue
Block a user