Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / approval-utilities / default.nix
blob38d22ad57aae4a27f6d4b1dcf13453673e5cc83e
1 { lib
2 , buildPythonPackage
3 , approvaltests
4 , pythonOlder
5 , setuptools
6 , typing-extensions
7 }:
9 buildPythonPackage rec {
10   pname = "approval-utilities";
11   inherit (approvaltests) version src;
12   disabled = pythonOlder "3.7";
13   pyproject = true;
15   postPatch = ''
16     mv setup.approval_utilities.py setup.py
17   '';
19   nativeBuildInputs = [
20     setuptools
21   ];
23   propagatedBuildInputs = [
24     # used in approval_utilities/utilities/time_utilities.py
25     typing-extensions
26   ];
28   pythonImportsCheck = [ "approval_utilities" ];
30   # upstream has no tests
31   doCheck = false;
33   meta = {
34     description = "Utilities for your production code that work well with approvaltests";
35     homepage = "https://github.com/approvals/ApprovalTests.Python";
36     license = lib.licenses.asl20;
37     maintainers = with lib.maintainers; [ dotlambda ];
38   };