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