Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 docker, 5 fetchFromGitHub, 6 poetry-core, 7 pytestCheckHook, 8 pythonOlder, 9 requests, 10 responses, 11}: 12 13buildPythonPackage rec { 14 pname = "securityreporter"; 15 version = "1.1.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "dongit-org"; 22 repo = "python-reporter"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-Ddq1qjaQemawK+u3ArlsChrkzRbcuaj5LrswyTGwTrg="; 25 }; 26 27 build-system = [ poetry-core ]; 28 29 dependencies = [ requests ]; 30 31 nativeCheckInputs = [ 32 docker 33 pytestCheckHook 34 responses 35 ]; 36 37 pythonImportsCheck = [ "reporter" ]; 38 39 disabledTestPaths = [ 40 # Test require a running Docker instance 41 "tests/functional/" 42 ]; 43 44 meta = with lib; { 45 description = "Python wrapper for the Reporter API"; 46 homepage = "https://github.com/dongit-org/python-reporter"; 47 changelog = "https://github.com/dongit-org/python-reporter/releases/tag/v${version}"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}