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:
parent
a95243647b
commit
8090784c0c
26
pkgs/development/python-modules/linecache2/default.nix
Normal file
26
pkgs/development/python-modules/linecache2/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue