depot/third_party/nixpkgs/pkgs/development/python-modules/testing-common-database/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

34 lines
751 B
Nix

{
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 = with lib; {
description = "utilities for testing.* packages";
homepage = "https://github.com/tk0miya/testing.common.database";
license = licenses.asl20;
maintainers = with maintainers; [ jluttine ];
};
}