Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 73 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ lib, buildPythonPackage, fetchPypi, pythonOlder, stdenv, replaceVars,
# build-system hatchling,
# native dependencies xorg,
# tests lsof, pillow, pytest-cov-stub, pytest, pyvirtualdisplay, xvfb-run,}:
buildPythonPackage rec { pname = "mss"; version = "10.0.0"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi { inherit pname version; hash = "sha256-2QPg1RJivw+HgoQc8W6qbX4+HxLq41q0HC4xiDfGY38="; };
patches = lib.optionals stdenv.hostPlatform.isLinux [ (replaceVars ./linux-paths.patch { x11 = "${xorg.libX11}/lib/libX11.so"; xfixes = "${xorg.libXfixes}/lib/libXfixes.so"; xrandr = "${xorg.libXrandr}/lib/libXrandr.so"; }) ];
build-system = [ hatchling ];
doCheck = stdenv.hostPlatform.isLinux;
nativeCheckInputs = [ lsof pillow pytest-cov-stub pytest pyvirtualdisplay xvfb-run ];
checkPhase = '' runHook preCheck xvfb-run pytest -k "not test_grab_with_tuple and not test_grab_with_tuple_percents and not test_resource_leaks" runHook postCheck '';
pythonImportsCheck = [ "mss" ];
meta = with lib; { description = "Cross-platform multiple screenshots module"; mainProgram = "mss"; homepage = "https://github.com/BoboTiG/python-mss"; changelog = "https://github.com/BoboTiG/python-mss/blob/v${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ austinbutler ]; };}