Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / mss / default.nix
bloba0d74719e7942baf7a6ae97fcfff39e3fffbaa0a
1 { lib, buildPythonPackage, fetchPypi, isPy3k }:
3 buildPythonPackage rec {
4   pname = "mss";
5   version = "6.1.0";
6   disabled = !isPy3k;
8   src = fetchPypi {
9     inherit pname version;
10     sha256 = "aebd069f3e05667fe9c7b9fa4b1771fe42a4710ce1058ce0236936ce06fa5394";
11   };
13   # By default it attempts to build Windows-only functionality
14   prePatch = ''
15     rm mss/windows.py
16   '';
18   # Skipping tests due to most relying on DISPLAY being set
19   pythonImportsCheck = [ "mss" ];
21   meta = with lib; {
22     description = "Cross-platform multiple screenshots module in pure Python";
23     homepage = "https://github.com/BoboTiG/python-mss";
24     license = licenses.mit;
25     maintainers = with maintainers; [ austinbutler ];
26   };