mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 06:24:08 +01:00
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>
34 lines
749 B
Nix
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 ];
|
|
};
|
|
}
|