nixpkgs/pkgs/development/python-modules/simplehound/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

39 lines
779 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 ];
};
}