nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4
5# propagated
6, aiohttp
7
8# tests
9, pytest-asyncio
10, pytestCheckHook
11}:
12
13let
14 pname = "pyoctoprintapi";
15 version = "0.1.8";
16in
17buildPythonPackage {
18 inherit pname version;
19 format = "setuptools";
20
21 src = fetchFromGitHub {
22 owner = "rfleming71";
23 repo = pname;
24 rev = "v${version}";
25 hash = "sha256-TeMgEwKVZd0gq8J0kYsg0/v6A2BVTOE0/VmyiyrjV5c=";
26 };
27
28 propagatedBuildInputs = [
29 aiohttp
30 ];
31
32 pythonImportsCheck = [
33 "pyoctoprintapi"
34 ];
35
36 checkInputs = [
37 pytest-asyncio
38 pytestCheckHook
39 ];
40
41 meta = with lib; {
42 description = "Simple async wrapper around the Octoprint API";
43 homepage = "https://github.com/rfleming71/pyoctoprintapi";
44 license = licenses.mit;
45 maintainers= with maintainers; [ hexa ];
46 };
47}