Merge pull request #114472 from fabaff/simplehound
This commit is contained in:
commit
1c6912636d
37
pkgs/development/python-modules/simplehound/default.nix
Normal file
37
pkgs/development/python-modules/simplehound/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -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
|
||||
|
@ -7286,6 +7286,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 { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user