1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "testing.common.database";
10 version = "2.0.3";
11 pyproject = true;
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "0wvdv0frl7xib05sixjv9m6jywaa2wdhdhsqqdfk45akk2r80pcn";
16 };
17
18 postPatch = ''
19 substituteInPlace src/testing/common/database.py \
20 --replace-fail "collections.Callable" "collections.abc.Callable"
21 '';
22
23 build-system = [ setuptools ];
24
25 # There are no unit tests
26 doCheck = false;
27
28 meta = with lib; {
29 description = "Utilities for testing.* packages";
30 homepage = "https://github.com/tk0miya/testing.common.database";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ jluttine ];
33 };
34}