nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycryptodomex,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "motionblinds";
11 version = "0.6.30";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "starkillerOG";
16 repo = "motion-blinds";
17 tag = version;
18 hash = "sha256-xV9od7xTKBBE4f4Mqg57Mp0MXO8/lG+bBKzG+jv6gf4=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ pycryptodomex ];
24
25 # Module has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "motionblinds" ];
29
30 meta = {
31 description = "Python library for interfacing with Motion Blinds";
32 homepage = "https://github.com/starkillerOG/motion-blinds";
33 changelog = "https://github.com/starkillerOG/motion-blinds/releases/tag/${src.tag}";
34 license = with lib.licenses; [ mit ];
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}