diff options
author | OTABI Tomoya <tomoya.otabi@gmail.com> | 2023-09-09 22:17:38 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 22:17:38 +0900 |
commit | 08e65c3723c36c501246f1376ae3b5bc369f6b02 (patch) | |
tree | 1ca349370046b418c66e48741dfe1d659b4985cd /pkgs/by-name | |
parent | f1f999229899679f238c748720f71896e3a26fbd (diff) | |
parent | edfb23dd6bd661e5bef1c57cc0d0c6461dcf5619 (diff) |
Merge pull request #254119 from figsoda/zxpy
zxpy: init at 1.6.3
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/zx/zxpy/package.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/by-name/zx/zxpy/package.nix b/pkgs/by-name/zx/zxpy/package.nix new file mode 100644 index 0000000000000..1735a6523b0b0 --- /dev/null +++ b/pkgs/by-name/zx/zxpy/package.nix @@ -0,0 +1,53 @@ +{ lib +, python3 +, fetchFromGitHub +, fetchpatch +, deterministic-uname +}: + +python3.pkgs.buildPythonApplication rec { + pname = "zxpy"; + version = "1.6.3"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "tusharsadhwani"; + repo = "zxpy"; + rev = version; + hash = "sha256-/sOLSIqaAUkaAghPqe0Zoq7C8CSKAd61o8ivtjJFcJY="; + }; + + patches = [ + # fix test caused by `uname -p` printing unknown + # https://github.com/tusharsadhwani/zxpy/pull/53 + (fetchpatch { + name = "allow-unknown-processor-in-injection-test.patch"; + url = "https://github.com/tusharsadhwani/zxpy/commit/95ad80caddbab82346f60ad80a601258fd1238c9.patch"; + hash = "sha256-iXasOKjWuxNjjTpb0umNMNhbFgBjsu5LsOpTaXllATM="; + }) + ]; + + nativeBuildInputs = [ + python3.pkgs.setuptools + python3.pkgs.wheel + ]; + + nativeCheckInputs = [ + deterministic-uname + python3.pkgs.pytestCheckHook + ]; + + preCheck = '' + export PATH=$out/bin:$PATH + ''; + + pythonImportsCheck = [ "zx" ]; + + meta = with lib; { + description = "Shell scripts made simple"; + homepage = "https://github.com/tusharsadhwani/zxpy"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "zxpy"; + }; +} |