2019-02-25 13:39:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, astropy
|
|
|
|
, astropy-helpers
|
|
|
|
, pillow
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyavm";
|
|
|
|
version = "0.9.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "PyAVM";
|
|
|
|
inherit version;
|
|
|
|
sha256 = "f298b864e5bc101ecbb0e46252e95e18a180ac28ba6ec362e63c12a7e914e386";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ astropy-helpers ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest astropy pillow ];
|
|
|
|
|
|
|
|
checkPhase = "pytest";
|
|
|
|
|
|
|
|
# Disable automatic update of the astropy-helper module
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple pure-python AVM meta-data handling";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://astrofrog.github.io/pyavm/";
|
2019-02-25 13:39:24 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.smaret ];
|
|
|
|
};
|
|
|
|
}
|