depot/third_party/nixpkgs/pkgs/development/python-modules/pyavm/default.nix
Default email 0fe1cd7bea Project import generated by Copybara.
GitOrigin-RevId: c6c4a3d45ab200f17805d2d86a1ff1cc7ca2b186
2021-07-16 21:40:57 +02:00

43 lines
839 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, astropy
, astropy-helpers
, pillow
}:
buildPythonPackage rec {
pname = "pyavm";
version = "0.9.5";
src = fetchPypi {
pname = "PyAVM";
inherit version;
sha256 = "sha256-gV78ypvYwohHmdjP3lN5F97PfmxuV91tvw5gsYeZ7i8=";
};
propagatedBuildInputs = [
astropy-helpers
];
checkInputs = [
astropy
pillow
pytestCheckHook
];
# Disable automatic update of the astropy-helper module
postPatch = ''
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
'';
pythonImportsCheck = [ "pyavm" ];
meta = with lib; {
description = "Simple pure-python AVM meta-data handling";
homepage = "https://astrofrog.github.io/pyavm/";
license = licenses.mit;
maintainers = with maintainers; [ smaret ];
};
}