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