2021-03-13 03:40:22 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, python
|
|
|
|
}:
|
2020-12-17 13:26:08 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ciscomobilityexpress";
|
2021-03-12 23:17:40 +01:00
|
|
|
version = "1.0.2";
|
2023-12-07 04:53:02 +01:00
|
|
|
format = "setuptools";
|
2020-12-17 13:26:08 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-12 23:17:40 +01:00
|
|
|
sha256 = "d8787245598e8371a83baa4db1df949d8a942c43f13454fa26ee3b09c3ccafc0";
|
2020-12-17 13:26:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
2021-03-13 03:40:22 +01:00
|
|
|
# tests directory is set up, but has no tests
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"ciscomobilityexpress"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-12-17 13:26:08 +01:00
|
|
|
description = "Module to interact with Cisco Mobility Express APIs to fetch connected devices";
|
2021-03-13 03:40:22 +01:00
|
|
|
homepage = "https://github.com/fbradyirl/ciscomobilityexpress";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ uvnikita ];
|
2020-12-17 13:26:08 +01:00
|
|
|
};
|
|
|
|
}
|