mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-01 18:17:21 +03:00
Merge pull request #246976 from tjni/python2-backport
python2.pkgs.backports-functools-lru-cache: init at 1.6.6
This commit is contained in:
commit
e3d4db7a19
@ -0,0 +1,38 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "backports-functools-lru-cache";
|
||||
version = "1.6.6";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "backports.functools_lru_cache";
|
||||
inherit version;
|
||||
hash = "sha256-e3DnAbpNtYwO2GcanTORsKu5vRvCTU6Qw0gPS6r8wtw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
# circular dependency:
|
||||
# backports-functools-lru-cache -> pytest -> wc-width -> backports-functools-lru-cache
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"backports.functools_lru_cache"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Backport of functools.lru_cache";
|
||||
homepage = "https://github.com/jaraco/backports.functools_lru_cache";
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
|
10
pkgs/development/python2-modules/wcwidth/default.nix
Normal file
10
pkgs/development/python2-modules/wcwidth/default.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{ backports-functools-lru-cache
|
||||
, wcwidth
|
||||
}:
|
||||
|
||||
wcwidth.overridePythonAttrs(oldAttrs: {
|
||||
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [
|
||||
backports-functools-lru-cache
|
||||
];
|
||||
})
|
||||
|
@ -7,6 +7,8 @@ self: super:
|
||||
with self; with super; {
|
||||
attrs = callPackage ../development/python2-modules/attrs { };
|
||||
|
||||
backports-functools-lru-cache = callPackage ../development/python2-modules/backports-functools-lru-cache { };
|
||||
|
||||
bootstrapped-pip = toPythonModule (callPackage ../development/python2-modules/bootstrapped-pip { });
|
||||
|
||||
cffi = callPackage ../development/python2-modules/cffi { inherit cffi; };
|
||||
@ -81,6 +83,10 @@ with self; with super; {
|
||||
doCheck = false; # circular dependency with pytest
|
||||
});
|
||||
|
||||
wcwidth = callPackage ../development/python2-modules/wcwidth {
|
||||
inherit wcwidth;
|
||||
};
|
||||
|
||||
wheel = callPackage ../development/python2-modules/wheel { };
|
||||
|
||||
zeek = disabled super.zeek;
|
||||
|
Loading…
Reference in New Issue
Block a user