diff options
author | Austin Butler <austinabutler@gmail.com> | 2020-09-26 18:33:49 -0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-09-26 18:52:35 -0700 |
commit | af2dc4d401f87f96e752d14c0733681e30d30f43 (patch) | |
tree | 2324107aacb0704f8088d32026c5dfe2d61b9e6c /pkgs/development | |
parent | 40efae06a7f90fb418b2b8d88518507213c72435 (diff) |
python3Packages.mss: init at 6.0.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/mss/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mss/default.nix b/pkgs/development/python-modules/mss/default.nix new file mode 100644 index 0000000000000..1604a006567e5 --- /dev/null +++ b/pkgs/development/python-modules/mss/default.nix @@ -0,0 +1,29 @@ +{ lib, buildPythonPackage, fetchPypi, isPy3k }: + +buildPythonPackage rec { + pname = "mss"; + version = "6.0.0"; + disabled = !isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "0dicp55adbqxb7hqlck95hngb1klv5s26lszw3xim30k18bwqaxl"; + }; + + propagatedBuildInputs = [ ]; + + # By default it attempts to build Windows-only functionality + prePatch = '' + rm mss/windows.py + ''; + + # Skipping tests due to most relying on DISPLAY being set + pythonImportsCheck = [ "mss" ]; + + meta = with lib; { + description = "Cross-platform multiple screenshots module in pure Python"; + homepage = "https://github.com/BoboTiG/mss/"; + license = licenses.mit; + maintainers = with maintainers; [ austinbutler ]; + }; +} |