Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 737 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5}: 6 7buildPythonPackage rec { 8 pname = "mss"; 9 version = "7.0.1"; 10 format = "setuptools"; 11 12 disabled = pythonOlder "3.6"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-8UzuUokDw7AdO48SCc1JhCL3Hj0NLZLFuTPt07l3ICI="; 17 }; 18 19 # By default it attempts to build Windows-only functionality 20 prePatch = '' 21 rm mss/windows.py 22 ''; 23 24 # Skipping tests due to most relying on DISPLAY being set 25 pythonImportsCheck = [ 26 "mss" 27 ]; 28 29 meta = with lib; { 30 description = "Cross-platform multiple screenshots module"; 31 homepage = "https://github.com/BoboTiG/python-mss"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ austinbutler ]; 34 }; 35}