Merge pull request #146791 from fabaff/pyversasense
python3Packages.pyversasense: init at 0.0.6
This commit is contained in:
commit
a0fc4d7e50
57
pkgs/development/python-modules/pyversasense/default.nix
Normal file
57
pkgs/development/python-modules/pyversasense/default.nix
Normal file
@ -0,0 +1,57 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, asynctest
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyversasense";
|
||||
version = "0.0.6";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "imstevenxyz";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "vTaDEwImWDMInwti0Jj+j+RFEtXOOKtiH5wOMD6ZmJk=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
asynctest
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"tests/test.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests are not properly mocking network requests
|
||||
"test_device_mac"
|
||||
"test_peripheral_id"
|
||||
"test_peripheral_measurements"
|
||||
"test_samples"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyversasense"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library to communicate with the VersaSense API";
|
||||
homepage = "https://github.com/imstevenxyz/pyversasense";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -936,7 +936,7 @@
|
||||
"venstar" = ps: with ps; [ venstarcolortouch ];
|
||||
"vera" = ps: with ps; [ pyvera ];
|
||||
"verisure" = ps: with ps; [ vsure ];
|
||||
"versasense" = ps: with ps; [ ]; # missing inputs: pyversasense
|
||||
"versasense" = ps: with ps; [ pyversasense ];
|
||||
"version" = ps: with ps; [ pyhaversion ];
|
||||
"vesync" = ps: with ps; [ pyvesync ];
|
||||
"viaggiatreno" = ps: with ps; [ ];
|
||||
|
@ -7865,6 +7865,8 @@ in {
|
||||
|
||||
pyverilog = callPackage ../development/python-modules/pyverilog { };
|
||||
|
||||
pyversasense = callPackage ../development/python-modules/pyversasense { };
|
||||
|
||||
pyvesync = callPackage ../development/python-modules/pyvesync { };
|
||||
|
||||
pyvex = callPackage ../development/python-modules/pyvex { };
|
||||
|
Loading…
Reference in New Issue
Block a user