Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest-astropy 5, semantic-version 6, pyyaml 7, jsonschema 8, six 9, numpy 10, isPy27 11, astropy 12, setuptools_scm 13, setuptools 14}: 15 16buildPythonPackage rec { 17 pname = "asdf"; 18 version = "2.7.1"; 19 disabled = isPy27; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "4ba2e31cb24b974a10dfae3edee23db2e6bea2d00608604d062366aa3af6e81a"; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.cfg \ 28 --replace "semantic_version>=2.3.1,<=2.6.0" "semantic_version>=2.3.1" \ 29 --replace "doctest_plus = enabled" "" 30 ''; 31 32 checkInputs = [ 33 pytest-astropy 34 astropy 35 ]; 36 37 propagatedBuildInputs = [ 38 semantic-version 39 pyyaml 40 jsonschema 41 six 42 numpy 43 setuptools_scm 44 setuptools 45 ]; 46 47 checkPhase = '' 48 pytest 49 ''; 50 51 meta = with lib; { 52 description = "Python tools to handle ASDF files"; 53 homepage = "https://github.com/spacetelescope/asdf"; 54 license = licenses.bsd3; 55 maintainers = [ maintainers.costrouc ]; 56 }; 57}