Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.simplehound: init at 0.6 #114472

Merged
merged 2 commits into from Feb 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 37 additions & 0 deletions pkgs/development/python-modules/simplehound/default.nix
@@ -0,0 +1,37 @@
{ lib
, requests
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests-mock
}:

buildPythonPackage rec {
pname = "simplehound";
version = "0.6";
disabled = pythonOlder "3.6";

src = fetchFromGitHub {
owner = "robmarkcole";
repo = pname;
rev = "v${version}";
sha256 = "1b5m3xjmk0l6ynf0yvarplsfsslgklalfcib7sikxg3v5hiv9qwh";
};

propagatedBuildInputs = [ requests ];

checkInputs = [
requests-mock
pytestCheckHook
];

pythonImportsCheck = [ "simplehound" ];

meta = with lib; {
description = "Python API for Sighthound";
homepage = "https://github.com/robmarkcole/simplehound";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Expand Up @@ -731,7 +731,7 @@
"shopping_list" = ps: with ps; [ aiohttp-cors ];
"sht31" = ps: with ps; [ ]; # missing inputs: Adafruit-GPIO Adafruit-SHT31
"sigfox" = ps: with ps; [ ];
"sighthound" = ps: with ps; [ pillow ]; # missing inputs: simplehound
"sighthound" = ps: with ps; [ pillow simplehound ];
"signal_messenger" = ps: with ps; [ ]; # missing inputs: pysignalclirestapi
"simplepush" = ps: with ps; [ ]; # missing inputs: simplepush
"simplisafe" = ps: with ps; [ ]; # missing inputs: simplisafe-python
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -7284,6 +7284,8 @@ in {

simplegeneric = callPackage ../development/python-modules/simplegeneric { };

simplehound = callPackage ../development/python-modules/simplehound { };

simplejson = callPackage ../development/python-modules/simplejson { };

simplekml = callPackage ../development/python-modules/simplekml { };
Expand Down