1{ 2 lib, 3 requests, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 requests-mock, 9}: 10 11buildPythonPackage rec { 12 pname = "simplehound"; 13 version = "0.6"; 14 format = "setuptools"; 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "robmarkcole"; 19 repo = "simplehound"; 20 rev = "v${version}"; 21 sha256 = "1b5m3xjmk0l6ynf0yvarplsfsslgklalfcib7sikxg3v5hiv9qwh"; 22 }; 23 24 propagatedBuildInputs = [ requests ]; 25 26 nativeCheckInputs = [ 27 requests-mock 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "simplehound" ]; 32 33 meta = with lib; { 34 description = "Python API for Sighthound"; 35 homepage = "https://github.com/robmarkcole/simplehound"; 36 license = with licenses; [ asl20 ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}