at 22.05-pre 717 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k }: 2 3buildPythonPackage rec { 4 pname = "mss"; 5 version = "6.1.0"; 6 disabled = !isPy3k; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "aebd069f3e05667fe9c7b9fa4b1771fe42a4710ce1058ce0236936ce06fa5394"; 11 }; 12 13 # By default it attempts to build Windows-only functionality 14 prePatch = '' 15 rm mss/windows.py 16 ''; 17 18 # Skipping tests due to most relying on DISPLAY being set 19 pythonImportsCheck = [ "mss" ]; 20 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 }; 27}