depot/third_party/nixpkgs/pkgs/development/python-modules/simplehound/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
788 B
Nix

{
lib,
requests,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests-mock,
}:
buildPythonPackage rec {
pname = "simplehound";
version = "0.6";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "robmarkcole";
repo = pname;
rev = "v${version}";
sha256 = "1b5m3xjmk0l6ynf0yvarplsfsslgklalfcib7sikxg3v5hiv9qwh";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
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 ];
};
}