1{ lib 2, buildPythonPackage 3, approvaltests 4, pythonOlder 5}: 6 7buildPythonPackage rec { 8 pname = "approval-utilities"; 9 inherit (approvaltests) version src; 10 disabled = pythonOlder "3.7"; 11 format = "setuptools"; 12 13 postPatch = '' 14 mv setup.approval_utilities.py setup.py 15 ''; 16 17 pythonImportsCheck = [ "approval_utilities" ]; 18 19 # upstream has no tests 20 doCheck = false; 21 22 meta = { 23 description = "Utilities for your production code that work well with approvaltests"; 24 homepage = "https://github.com/approvals/ApprovalTests.Python"; 25 license = lib.licenses.asl20; 26 maintainers = with lib.maintainers; [ dotlambda ]; 27 }; 28}