python313Packages.publicsuffixlist: 1.0.2.20250122 -> 1.0.2.20250124 (#376319)
[NixPkgs.git] / pkgs / by-name / zx / zxpy / package.nix
blob4c731b863602fda4763d5ea1d4ce05ab776a53f2
2   lib,
3   python3,
4   fetchFromGitHub,
5   fetchpatch,
6   deterministic-uname,
7 }:
9 python3.pkgs.buildPythonApplication rec {
10   pname = "zxpy";
11   version = "1.6.3";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "tusharsadhwani";
16     repo = "zxpy";
17     rev = version;
18     hash = "sha256-/sOLSIqaAUkaAghPqe0Zoq7C8CSKAd61o8ivtjJFcJY=";
19   };
21   patches = [
22     # fix test caused by `uname -p` printing unknown
23     # https://github.com/tusharsadhwani/zxpy/pull/53
24     (fetchpatch {
25       name = "allow-unknown-processor-in-injection-test.patch";
26       url = "https://github.com/tusharsadhwani/zxpy/commit/95ad80caddbab82346f60ad80a601258fd1238c9.patch";
27       hash = "sha256-iXasOKjWuxNjjTpb0umNMNhbFgBjsu5LsOpTaXllATM=";
28     })
29   ];
31   nativeBuildInputs = [
32     python3.pkgs.setuptools
33     python3.pkgs.wheel
34   ];
36   nativeCheckInputs = [
37     deterministic-uname
38     python3.pkgs.pytestCheckHook
39   ];
41   preCheck = ''
42     export PATH=$out/bin:$PATH
43   '';
45   pythonImportsCheck = [ "zx" ];
47   meta = with lib; {
48     description = "Shell scripts made simple";
49     homepage = "https://github.com/tusharsadhwani/zxpy";
50     changelog = "https://github.com/tusharsadhwani/zxpy/releases/tag/${version}";
51     license = licenses.mit;
52     maintainers = with maintainers; [ figsoda ];
53     mainProgram = "zxpy";
54   };