1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "wiffi";
10 version = "1.1.2";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.6";
14
15 src = fetchFromGitHub {
16 owner = "mampfes";
17 repo = "python-wiffi";
18 rev = "refs/tags/${version}";
19 hash = "sha256-pnbzJxq8K947Yg54LysPPho6IRKf0cc+szTETgyzFao=";
20 };
21
22 propagatedBuildInputs = [
23 aiohttp
24 ];
25
26 # Project has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "wiffi"
31 ];
32
33 meta = with lib; {
34 description = "Python module to interface with STALL WIFFI devices";
35 homepage = "https://github.com/mampfes/python-wiffi";
36 changelog = "https://github.com/mampfes/python-wiffi/blob/${version}/HISTORY.md";
37 license = with licenses; [ mit ];
38 maintainers = with maintainers; [ fab ];
39 };
40}