1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-19 16:09:19 +03:00
nixpkgs/pkgs/development/python-modules/pyavm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
839 B
Nix
Raw Normal View History

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