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