3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/asdf/default.nix

56 lines
956 B
Nix
Raw Normal View History

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