1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

pythonPackages.linecache2: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-28 12:45:59 -04:00
parent a95243647b
commit 8090784c0c
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 27 additions and 18 deletions

View file

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pbr
}:
buildPythonPackage rec {
pname = "linecache2";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb";
};
buildInputs = [ pbr ];
# circular dependencies for tests
doCheck = false;
meta = with stdenv.lib; {
description = "A backport of linecache to older supported Pythons";
homepage = "https://github.com/testing-cabal/linecache2";
license = licenses.psfl;
};
}

View file

@ -4055,24 +4055,7 @@ in {
traceback2 = callPackage ../development/python-modules/traceback2 { };
linecache2 = buildPythonPackage rec {
name = "linecache2-${version}";
version = "1.0.0";
src = pkgs.fetchurl {
url = "mirror://pypi/l/linecache2/${name}.tar.gz";
sha256 = "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb";
};
buildInputs = with self; [ pbr ];
# circular dependencies for tests
doCheck = false;
meta = with stdenv.lib; {
description = "A backport of linecache to older supported Pythons";
homepage = "https://github.com/testing-cabal/linecache2";
};
};
linecache2 = callPackage ../development/python-modules/linecache2 { };
upass = buildPythonPackage rec {
version = "0.1.4";