nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 requests,
7}:
8
9buildPythonPackage rec {
10 pname = "yalesmartalarmclient";
11 version = "0.4.3";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "domwillcode";
16 repo = "yale-smart-alarm-client";
17 tag = "v${version}";
18 hash = "sha256-a0rzPEixJXLBfN+kJRPYiJiHY1BKxg/mM14RO3RiVdA=";
19 };
20
21 build-system = [ poetry-core ];
22
23 dependencies = [ requests ];
24
25 # Project has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "yalesmartalarmclient" ];
29
30 meta = {
31 description = "Python module to interface with Yale Smart Alarm Systems";
32 homepage = "https://github.com/domwillcode/yale-smart-alarm-client";
33 changelog = "https://github.com/domwillcode/yale-smart-alarm-client/releases/tag/v${version}";
34 license = with lib.licenses; [ asl20 ];
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}