1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, setuptools-scm
6}:
7
8buildPythonPackage rec {
9 pname = "lazy-object-proxy";
10 version = "1.7.1";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "d609c75b986def706743cdebe5e47553f4a5a1da9c5ff66d76013ef396b5a8a4";
15 };
16
17 nativeBuildInputs = [
18 setuptools-scm
19 ];
20
21 postPatch = ''
22 substituteInPlace pyproject.toml --replace ",<6.0" ""
23 substituteInPlace setup.cfg --replace ",<6.0" ""
24 '';
25
26 checkInputs = [
27 pytestCheckHook
28 ];
29
30 # Broken tests. Seem to be fixed upstream according to Travis.
31 doCheck = false;
32
33 meta = with lib; {
34 description = "A fast and thorough lazy object proxy";
35 homepage = "https://github.com/ionelmc/python-lazy-object-proxy";
36 license = with licenses; [ bsd2 ];
37 };
38
39}