nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 aiohttp, 7 pytz, 8 requests, 9 pytestCheckHook, 10 pytest-asyncio, 11 pytest-cov-stub, 12 pydantic, 13 responses, 14}: 15 16buildPythonPackage rec { 17 pname = "fhir-py"; 18 version = "2.2.0"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "beda-software"; 23 repo = "fhir-py"; 24 tag = "v${version}"; 25 hash = "sha256-C6ttVEYsnOzA4PFtq0wHfXrGSvpXOj0/oTuVDtx19qc="; 26 }; 27 28 build-system = [ flit-core ]; 29 30 dependencies = [ 31 aiohttp 32 pytz 33 requests 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 pytest-asyncio 39 pytest-cov-stub 40 pydantic 41 responses 42 ]; 43 44 # sync/async test cases require docker-compose to set up services, so disable: 45 disabledTestPaths = [ "tests/test_lib_sync.py" ]; 46 disabledTests = [ "TestLibAsyncCase" ]; 47 48 pythonImportsCheck = [ "fhirpy" ]; 49 50 meta = { 51 description = "Async/sync API for FHIR resources"; 52 homepage = "https://github.com/beda-software/fhir-py"; 53 changelog = "https://github.com/beda-software/fhir-py/blob/${src.tag}/CHANGELOG.md"; 54 license = lib.licenses.mit; 55 maintainers = with lib.maintainers; [ bcdarwin ]; 56 }; 57}