nixpkgs/pkgs/development/python-modules/testing-common-database/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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