Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 983 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, requests-mock 6, pythonOlder 7, pytest-asyncio 8, pytestCheckHook 9, python-dateutil 10, requests 11}: 12 13buildPythonPackage rec { 14 pname = "flipr-api"; 15 version = "1.5.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "cnico"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-IAxB3i/HkwO5sjDh2aBCtijOcG0VIbatQjTWIh0inoM="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 python-dateutil 33 requests 34 ]; 35 36 nativeCheckInputs = [ 37 requests-mock 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "flipr_api" 44 ]; 45 46 meta = with lib; { 47 description = "Python client for Flipr API"; 48 homepage = "https://github.com/cnico/flipr-api"; 49 changelog = "https://github.com/cnico/flipr-api/releases/tag/${version}"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}