depot/third_party/nixpkgs/pkgs/development/python-modules/testing-common-database/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

30 lines
678 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
}:
buildPythonPackage rec {
pname = "testing.common.database";
version = "2.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "0wvdv0frl7xib05sixjv9m6jywaa2wdhdhsqqdfk45akk2r80pcn";
};
postPatch = ''
substituteInPlace src/testing/common/database.py \
--replace "collections.Callable" "collections.abc.Callable"
'';
# 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 ];
};
}