default.nix (881B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 }: 6 7 python3Packages.buildPythonPackage rec { 8 pname = "python-cmr"; 9 version = "0.13.0"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "nasa"; 14 repo = "python_cmr"; 15 rev = "v${version}"; 16 hash = "sha256-yQAWmX4PsaDx/x3AdQkVIOXAH72VvJ4Ow4QaoZq4/gc="; 17 }; 18 19 build-system = with python3Packages; [ poetry-core ]; 20 21 dependencies = with python3Packages; [ 22 dateutil 23 requests 24 typing-extensions 25 ]; 26 27 nativeCheckInputs = with python3Packages; [ pytestCheckHook vcrpy ]; 28 29 disabledTestPaths = [ "tests/test_multiple_queries.py" ]; 30 31 pythonImportsCheck = [ "cmr" ]; 32 33 meta = { 34 description = "Python wrapper to the NASA Common Metadata Repository (CMR) API"; 35 homepage = "https://github.com/nasa/python_cmr"; 36 license = lib.licenses.mit; 37 maintainers = [ lib.maintainers.sikmir ]; 38 }; 39 }