mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
python3Packages.ciscomobilityexpress: enable tests, add imports check
This commit is contained in:
parent
8cba5f7c06
commit
63f77002b9
@ -1,4 +1,9 @@
|
||||
{ buildPythonPackage, fetchPypi, lib, requests }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, requests
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ciscomobilityexpress";
|
||||
@ -11,10 +16,19 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
meta = {
|
||||
# tests directory is set up, but has no tests
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"ciscomobilityexpress"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module to interact with Cisco Mobility Express APIs to fetch connected devices";
|
||||
homepage = "https://pypi.python.org/pypi/${pname}/";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ uvnikita ];
|
||||
homepage = "https://github.com/fbradyirl/ciscomobilityexpress";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ uvnikita ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user