mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 00:54:11 +00:00
pythonPackages.lazy-object-proxy: refactor move to python-modules
This commit is contained in:
parent
441bf57eca
commit
e5ca5a81a7
|
@ -0,0 +1,30 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lazy-object-proxy";
|
||||
version = "1.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "22ed751a2c63c6cf718674fd7461b1dfc45215bab4751ca32b6c9b8cb2734cb3";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
'';
|
||||
|
||||
# Broken tests. Seem to be fixed upstream according to Travis.
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A fast and thorough lazy object proxy";
|
||||
homepage = https://github.com/ionelmc/python-lazy-object-proxy;
|
||||
license = with licenses; [ bsd2 ];
|
||||
};
|
||||
|
||||
}
|
|
@ -5674,30 +5674,7 @@ in {
|
|||
|
||||
lark-parser = callPackage ../development/python-modules/lark-parser { };
|
||||
|
||||
lazy-object-proxy = buildPythonPackage rec {
|
||||
name = "lazy-object-proxy-${version}";
|
||||
version = "1.2.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/l/lazy-object-proxy/${name}.tar.gz";
|
||||
sha256 = "22ed751a2c63c6cf718674fd7461b1dfc45215bab4751ca32b6c9b8cb2734cb3";
|
||||
};
|
||||
|
||||
buildInputs = with self; [ pytest ];
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
'';
|
||||
|
||||
# Broken tests. Seem to be fixed upstream according to Travis.
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "A fast and thorough lazy object proxy";
|
||||
homepage = https://github.com/ionelmc/python-lazy-object-proxy;
|
||||
license = with licenses; [ bsd2 ];
|
||||
};
|
||||
|
||||
};
|
||||
lazy-object-proxy = callPackage ../development/python-modules/lazy-object-proxy { };
|
||||
|
||||
ldaptor = callPackage ../development/python-modules/ldaptor { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue