git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.semver: run tests
commitade98dc442ea78e9783d5e26954e64ec4a1b2c94 authorRobin Gloster <mail@glob.in> dateMon 25 Dec 2017, 20:23 (9 years ago) parentd86128c
1 file changed+8−6
pkgs/development/python-modules/semver/default.nix+8−6
pkgs/development/python-modules/semver/default.nix+8−6
@@ -1,17 +1,19 @@
1−{ stdenv, fetchPypi, buildPythonPackage }:
1+{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
22
33buildPythonPackage rec {
44 name = "${pname}-${version}";
55 pname = "semver";
66 version = "2.7.9";
77
8− src = fetchPypi {
9− inherit pname version;
10− sha256 = "1ffb55fb86a076cf7c161e6b5931f7da59f15abe217e0f24cea96cc8eec50f42";
8+ src = fetchFromGitHub {
9+ owner = "k-bx";
10+ repo = "python-semver";
11+ rev = "2001c62d1a0361c44acc7076d8ce91e1d1c66141"; # not tagged in repository
12+ sha256 = "01c05sv97dyr672sa0nr3fnh2aqbmvkfw19d6rkaj16h2sdsyg0i";
1113 };
1214
13− # No tests in archive
14− doCheck = false;
15+ checkInputs = [ pytest ];
16+ checkPhase = "pytest -v tests.py";
1517
1618 meta = with stdenv.lib; {
1719 description = "Python package to work with Semantic Versioning (http://semver.org/)";