Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 60 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, flit-core, aiohttp, pytz, requests, pytestCheckHook, pytest-asyncio, pytest-cov-stub, pydantic, responses,}:
buildPythonPackage rec { pname = "fhir-py"; version = "2.0.15"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "beda-software"; repo = "fhir-py"; tag = "v${version}"; hash = "sha256-XZC3cLjAy1VZfMsHy/QmwJXKiW/WxVous1LrbkGOeRs="; };
build-system = [ flit-core ];
dependencies = [ aiohttp pytz requests ];
nativeCheckInputs = [ pytestCheckHook pytest-asyncio pytest-cov-stub pydantic responses ];
# sync/async test cases require docker-compose to set up services, so disable: disabledTestPaths = [ "tests/test_lib_sync.py" ]; disabledTests = [ "TestLibAsyncCase" ];
pythonImportsCheck = [ "fhirpy" ];
meta = with lib; { description = "Async/sync API for FHIR resources"; homepage = "https://github.com/beda-software/fhir-py"; changelog = "https://github.com/beda-software/fhir-py/blob/${src.tag}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ bcdarwin ]; };}