Skip to content

Commit fbbf5e7

Browse files
committedJul 7, 2017
python.pkgs.virtualenv: move to separate expression
1 parent ea5b2df commit fbbf5e7

File tree

3 files changed

+32
-24
lines changed

3 files changed

+32
-24
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{ buildPythonPackage
2+
, fetchPypi
3+
, lib
4+
, recursivePthLoader
5+
}:
6+
7+
buildPythonPackage rec {
8+
pname = "virtualenv";
9+
version = "15.0.3";
10+
name = "${pname}-${version}";
11+
12+
src = fetchPypi {
13+
inherit pname version;
14+
sha256 = "6d9c760d3fc5fa0894b0f99b9de82a4647e1164f0b700a7f99055034bf548b1d";
15+
};
16+
17+
# Doubt this is needed - FRidh 2017-07-07
18+
pythonPath = [ recursivePthLoader ];
19+
20+
patches = [ ./virtualenv-change-prefix.patch ];
21+
22+
# Tarball doesn't contain tests
23+
doCheck = false;
24+
25+
meta = {
26+
description = "A tool to create isolated Python environments";
27+
homepage = http://www.virtualenv.org;
28+
license = lib.licenses.mit;
29+
maintainers = with lib.maintainers; [ goibhniu ];
30+
};
31+
}

‎pkgs/top-level/python-packages.nix

+1-24
Original file line numberDiff line numberDiff line change
@@ -25169,30 +25169,7 @@ in {
2516925169
};
2517025170
};
2517125171

25172-
virtualenv = buildPythonPackage rec {
25173-
name = "virtualenv-15.0.3";
25174-
25175-
src = pkgs.fetchurl {
25176-
url = "mirror://pypi/v/virtualenv/${name}.tar.gz";
25177-
sha256 = "6d9c760d3fc5fa0894b0f99b9de82a4647e1164f0b700a7f99055034bf548b1d";
25178-
};
25179-
25180-
pythonPath = [ self.recursivePthLoader ];
25181-
25182-
patches = [ ../development/python-modules/virtualenv-change-prefix.patch ];
25183-
25184-
propagatedBuildInputs = with self; [ ];
25185-
25186-
# Tarball doesn't contain tests
25187-
doCheck = false;
25188-
25189-
meta = {
25190-
description = "A tool to create isolated Python environments";
25191-
homepage = http://www.virtualenv.org;
25192-
license = licenses.mit;
25193-
maintainers = with maintainers; [ goibhniu ];
25194-
};
25195-
};
25172+
virtualenv = callPackage ../development/python-modules/virtualenv { };
2519625173

2519725174
virtualenv-clone = buildPythonPackage rec {
2519825175
name = "virtualenv-clone-0.2.5";

0 commit comments

Comments
 (0)
Please sign in to comment.