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