depot/third_party/nixpkgs/pkgs/development/python-modules/motionblinds/default.nix

40 lines
794 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pycryptodomex
, pythonOlder
}:
buildPythonPackage rec {
pname = "motionblinds";
version = "0.6.11";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "starkillerOG";
repo = "motion-blinds";
rev = "refs/tags/${version}";
sha256 = "sha256-LHZp5IXZqPYNwPlOQySwxon3uZX15caZvMeMY6QQIqk=";
};
propagatedBuildInputs = [
pycryptodomex
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"motionblinds"
];
meta = with lib; {
description = "Python library for interfacing with Motion Blinds";
homepage = "https://github.com/starkillerOG/motion-blinds";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}