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