lol

Merge pull request #272975 from bcdarwin/init-python3-fhir-py

python311Packages.fhir-py: init at 1.4.2

authored by

Mario Rodas and committed by
GitHub
f930306a fbb942e6

+65
+63
pkgs/development/python-modules/fhir-py/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , flit-core 6 + , aiohttp 7 + , pytz 8 + , requests 9 + , pytestCheckHook 10 + , pytest-asyncio 11 + , responses 12 + }: 13 + 14 + buildPythonPackage rec { 15 + pname = "fhir-py"; 16 + version = "1.4.2"; 17 + pyproject = true; 18 + 19 + disabled = pythonOlder "3.8"; 20 + 21 + src = fetchFromGitHub { 22 + owner = "beda-software"; 23 + repo = "fhir-py"; 24 + rev = "refs/tags/v${version}"; 25 + hash = "sha256-kYqoRso1ypN5novRxMMzz1h2NGNybbw5lK4+HErG79I="; 26 + }; 27 + 28 + preBuild = '' 29 + substituteInPlace pyproject.toml \ 30 + --replace "--cov=fhirpy" "" \ 31 + --replace "--cov-report=xml" "" 32 + ''; 33 + 34 + nativeBuildInputs = [ 35 + flit-core 36 + ]; 37 + 38 + propagatedBuildInputs = [ 39 + aiohttp 40 + pytz 41 + requests 42 + ]; 43 + 44 + nativeCheckInputs = [ 45 + pytestCheckHook 46 + pytest-asyncio 47 + responses 48 + ]; 49 + 50 + # sync/async test cases require docker-compose to set up services, so disable: 51 + disabledTestPaths = [ "tests/test_lib_sync.py" ]; 52 + disabledTests = [ "TestLibAsyncCase" ]; 53 + 54 + pythonImportsCheck = [ "fhirpy" ]; 55 + 56 + meta = with lib; { 57 + description = "Async/sync API for FHIR resources"; 58 + homepage = "https://github.com/beda-software/fhir-py"; 59 + changelog = "https://github.com/beda-software/fhir-py/blob/${src.rev}/CHANGELOG.md"; 60 + license = licenses.mit; 61 + maintainers = with maintainers; [ bcdarwin ]; 62 + }; 63 + }
+2
pkgs/top-level/python-packages.nix
··· 3954 3954 3955 3955 ffmpy = callPackage ../development/python-modules/ffmpy { }; 3956 3956 3957 + fhir-py = callPackage ../development/python-modules/fhir-py { }; 3958 + 3957 3959 fiblary3-fork = callPackage ../development/python-modules/fiblary3-fork { }; 3958 3960 3959 3961 fido2 = callPackage ../development/python-modules/fido2 { };