Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 55 lines 956 B view raw
1{ lib 2, astropy 3, buildPythonPackage 4, fetchPypi 5, jsonschema 6, numpy 7, packaging 8, pytest-astropy 9, pytestCheckHook 10, pythonOlder 11, pyyaml 12, semantic-version 13, setuptools-scm 14}: 15 16buildPythonPackage rec { 17 pname = "asdf"; 18 version = "2.7.3"; 19 disabled = pythonOlder "3.6"; 20 format = "pyproject"; 21 22 src = fetchPypi { 23 inherit pname version; 24 sha256 = "11dyr295wn5m2pcynlwj7kgw9xr66msfvwn1m6a5vv13vzj19spp"; 25 }; 26 27 nativeBuildInputs = [ setuptools-scm ]; 28 29 propagatedBuildInputs = [ 30 jsonschema 31 numpy 32 packaging 33 pyyaml 34 semantic-version 35 ]; 36 37 checkInputs = [ 38 pytest-astropy 39 astropy 40 pytestCheckHook 41 ]; 42 43 preCheck = '' 44 export PY_IGNORE_IMPORTMISMATCH=1 45 ''; 46 47 pythonImportsCheck = [ "asdf" ]; 48 49 meta = with lib; { 50 description = "Python tools to handle ASDF files"; 51 homepage = "https://github.com/spacetelescope/asdf"; 52 license = licenses.bsd3; 53 maintainers = [ maintainers.costrouc ]; 54 }; 55}