nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 = ''
15 mv setup/setup.approval_utilities.py setup.py
16 ''
17 + approvaltests.postPatch or "";
18
19 build-system = [ setuptools ];
20
21 dependencies = [
22 # used in approval_utilities/utilities/time_utilities.py
23 typing-extensions
24 ];
25
26 pythonImportsCheck = [ "approval_utilities" ];
27
28 # upstream has no tests
29 doCheck = false;
30
31 meta = {
32 description = "Utilities for your production code that work well with approvaltests";
33 homepage = "https://github.com/approvals/ApprovalTests.Python";
34 license = lib.licenses.asl20;
35 maintainers = with lib.maintainers; [ dotlambda ];
36 };
37}