Skip to content

Commit

Permalink
python3Packages.mss: init at 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
austinbutler authored and Jon committed Sep 27, 2020
1 parent 40efae0 commit af2dc4d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pkgs/development/python-modules/mss/default.nix
@@ -0,0 +1,29 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k }:

buildPythonPackage rec {
pname = "mss";
version = "6.0.0";
disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "0dicp55adbqxb7hqlck95hngb1klv5s26lszw3xim30k18bwqaxl";
};

propagatedBuildInputs = [ ];

# By default it attempts to build Windows-only functionality
prePatch = ''
rm mss/windows.py
'';

# Skipping tests due to most relying on DISPLAY being set
pythonImportsCheck = [ "mss" ];

meta = with lib; {
description = "Cross-platform multiple screenshots module in pure Python";
homepage = "https://github.com/BoboTiG/mss/";
license = licenses.mit;
maintainers = with maintainers; [ austinbutler ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -3815,6 +3815,8 @@ in {

msgpack-numpy = callPackage ../development/python-modules/msgpack-numpy { };

mss = callPackage ../development/python-modules/mss { };

msrestazure = callPackage ../development/python-modules/msrestazure { };

msrest = callPackage ../development/python-modules/msrest { };
Expand Down

0 comments on commit af2dc4d

Please sign in to comment.