4bac34ead1
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
28 lines
644 B
Nix
28 lines
644 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, approvaltests
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "approval-utilities";
|
|
inherit (approvaltests) version src;
|
|
disabled = pythonOlder "3.7";
|
|
format = "setuptools";
|
|
|
|
postPatch = ''
|
|
mv setup.approval_utilities.py setup.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "approval_utilities" ];
|
|
|
|
# upstream has no tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Utilities for your production code that work well with approvaltests";
|
|
homepage = "https://github.com/approvals/ApprovalTests.Python";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|