2021-02-20 16:24:25 +01:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wiffi";
|
2021-11-26 20:22:10 +01:00
|
|
|
version = "1.1.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2021-02-20 16:24:25 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mampfes";
|
|
|
|
repo = "python-wiffi";
|
|
|
|
rev = version;
|
2021-11-26 20:22:10 +01:00
|
|
|
sha256 = "sha256-uB4M3etW1DCE//V2pcmsLZbORmrL00pbPADMQD5y3CY=";
|
2021-02-20 16:24:25 +01:00
|
|
|
};
|
|
|
|
|
2021-11-26 20:22:10 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
2021-02-20 16:24:25 +01:00
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2021-11-26 20:22:10 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"wiffi"
|
|
|
|
];
|
2021-02-20 16:24:25 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to interface with STALL WIFFI devices";
|
|
|
|
homepage = "https://github.com/mampfes/python-wiffi";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|