summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/testing-common-database/default.nix
blob: 8c7682aa333f89287023d52d5a5bf50367fc8d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
}:

buildPythonPackage rec {
  pname = "testing.common.database";
  version = "2.0.3";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    sha256 = "0wvdv0frl7xib05sixjv9m6jywaa2wdhdhsqqdfk45akk2r80pcn";
  };

  postPatch = ''
    substituteInPlace src/testing/common/database.py \
      --replace-fail "collections.Callable" "collections.abc.Callable"
  '';

  build-system = [ setuptools ];

  # There are no unit tests
  doCheck = false;

  meta = {
    description = "Utilities for testing.* packages";
    homepage = "https://github.com/tk0miya/testing.common.database";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ jluttine ];
  };
}