1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, setuptools-scm
6}:
7
8buildPythonPackage rec {
9 pname = "lazy-object-proxy";
10 version = "1.9.0";
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-ZZ+1gJ+kYpuKGsUQb2ac/HvvJvuzid2lOz4BDRrE664=";
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 nativeCheckInputs = [
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}