depot/third_party/nixpkgs/pkgs/development/python-modules/lazy-object-proxy/default.nix
Default email 9405df4a82 Project import generated by Copybara.
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
2021-04-26 15:14:03 -04:00

39 lines
800 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, setuptools_scm
}:
buildPythonPackage rec {
pname = "lazy-object-proxy";
version = "1.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "489000d368377571c6f982fba6497f2aa13c6d1facc40660963da62f5c379726";
};
nativeBuildInputs = [
setuptools_scm
];
postPatch = ''
substituteInPlace pyproject.toml --replace ",<6.0" ""
substituteInPlace setup.cfg --replace ",<6.0" ""
'';
checkInputs = [
pytestCheckHook
];
# Broken tests. Seem to be fixed upstream according to Travis.
doCheck = false;
meta = with lib; {
description = "A fast and thorough lazy object proxy";
homepage = "https://github.com/ionelmc/python-lazy-object-proxy";
license = with licenses; [ bsd2 ];
};
}