@@ -0,0 +1,29 @@
1+{ lib, buildPythonPackage, fetchPypi, isPy3k }:
2+
3+buildPythonPackage rec {
4+ pname = "mss";
5+ version = "6.0.0";
6+ disabled = !isPy3k;
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "0dicp55adbqxb7hqlck95hngb1klv5s26lszw3xim30k18bwqaxl";
11+ };
12+
13+ propagatedBuildInputs = [ ];
14+
15+ # By default it attempts to build Windows-only functionality
16+ prePatch = ''
17+ rm mss/windows.py
18+ '';
19+
20+ # Skipping tests due to most relying on DISPLAY being set
21+ pythonImportsCheck = [ "mss" ];
22+
23+ meta = with lib; {
24+ description = "Cross-platform multiple screenshots module in pure Python";
25+ homepage = "https://github.com/BoboTiG/mss/";
26+ license = licenses.mit;
27+ maintainers = with maintainers; [ austinbutler ];
28+ };
29+}