git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.fixtures: fix build
commitb7eb4a4f9055d1d0b6891e555b25912d413028a0 authorFrederik Rietdijk <fridh@fridh.nl> dateThu 7 Sep 2017, 10:17 (9 years ago) parent85e2083
2 files changed+32−16
pkgs/development/python-modules/fixtures/default.nix+31 pkgs/top-level/python-packages.nix+1−16
pkgs/development/python-modules/fixtures/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pbr
5+, testtools
6+, mock
7+, python
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "fixtures";
12+ version = "1.4.0";
13+ name = "${pname}-${version}";
14+
15+ src = fetchPypi {
16+ inherit pname version;
17+ sha256 = "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y";
18+ };
19+
20+ propagatedBuildInputs = [ pbr testtools mock ];
21+
22+ checkPhase = ''
23+ ${python.interpreter} -m testtools.run fixtures.test_suite
24+ '';
25+
26+ meta = {
27+ description = "Reusable state for writing clean tests and more";
28+ homepage = "https://pypi.python.org/pypi/fixtures";
29+ license = lib.licenses.asl20;
30+ };
31+}
pkgs/top-level/python-packages.nix+1−16
@@ -15757,22 +15757,7 @@ in {
1575715757
1575815758 pbr = callPackage ../development/python-modules/pbr { };
1575915759
15760− fixtures = buildPythonPackage rec {
15761− name = "fixtures-1.4.0";
15762−
15763− src = pkgs.fetchurl {
15764− url = "mirror://pypi/f/fixtures/${name}.tar.gz";
15765− sha256 = "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y";
15766− };
15767−
15768− buildInputs = with self; [ pbr testtools mock ];
15769−
15770− meta = {
15771− description = "Reusable state for writing clean tests and more";
15772− homepage = "https://pypi.python.org/pypi/fixtures";
15773− license = licenses.asl20;
15774− };
15775− };
15760+ fixtures = callPackage ../development/python-modules/fixtures { };
1577615761
1577715762 pelican = callPackage ../development/python-modules/pelican {
1577815763 inherit (pkgs) glibcLocales pandoc git;