Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 appdirs, 4 buildPythonPackage, 5 certifi, 6 chardet, 7 fetchFromGitHub, 8 idna, 9 packaging, 10 pyparsing, 11 python-dateutil, 12 pythonOlder, 13 requests, 14 setuptools, 15 six, 16 urllib3, 17}: 18 19buildPythonPackage rec { 20 pname = "gophish"; 21 version = "0.5.1"; 22 pyproject = true; 23 24 disabled = pythonOlder "3.7"; 25 26 src = fetchFromGitHub { 27 owner = "gophish"; 28 repo = "api-client-python"; 29 rev = "refs/tags/v${version}"; 30 hash = "sha256-ITwwU/Xixyi9JSWbYf606HB7S5E4jiI0lEYcOdNg3mo="; 31 }; 32 33 pythonRelaxDeps = true; 34 35 build-system = [ setuptools ]; 36 37 38 dependencies = [ 39 appdirs 40 certifi 41 chardet 42 idna 43 packaging 44 pyparsing 45 python-dateutil 46 requests 47 six 48 urllib3 49 ]; 50 51 pythonImportsCheck = [ "gophish" ]; 52 53 # Module has no test 54 doCheck = false; 55 56 meta = with lib; { 57 description = "Module to interact with Gophish"; 58 homepage = "https://github.com/gophish/api-client-python"; 59 changelog = "https://github.com/gophish/api-client-python/releases/tag/v${version}"; 60 license = licenses.mit; 61 maintainers = with maintainers; [ fab ]; 62 }; 63}