depot/third_party/nixpkgs/pkgs/development/python-modules/asdf/default.nix
Default email d0d8e8fc71 Project import generated by Copybara.
GitOrigin-RevId: d3f7e969b9860fb80750147aeb56dab1c730e756
2021-03-23 19:22:30 +00:00

55 lines
956 B
Nix

{ lib
, astropy
, buildPythonPackage
, fetchPypi
, jsonschema
, numpy
, packaging
, pytest-astropy
, pytestCheckHook
, pythonOlder
, pyyaml
, semantic-version
, setuptools-scm
}:
buildPythonPackage rec {
pname = "asdf";
version = "2.7.3";
disabled = pythonOlder "3.6";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "11dyr295wn5m2pcynlwj7kgw9xr66msfvwn1m6a5vv13vzj19spp";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
jsonschema
numpy
packaging
pyyaml
semantic-version
];
checkInputs = [
pytest-astropy
astropy
pytestCheckHook
];
preCheck = ''
export PY_IGNORE_IMPORTMISMATCH=1
'';
pythonImportsCheck = [ "asdf" ];
meta = with lib; {
description = "Python tools to handle ASDF files";
homepage = "https://github.com/spacetelescope/asdf";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}