mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
0215034f25
when they already rely on SRI hashes.
44 lines
843 B
Nix
44 lines
843 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, astropy
|
|
, astropy-helpers
|
|
, pillow
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyavm";
|
|
version = "0.9.5";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyAVM";
|
|
inherit version;
|
|
hash = "sha256-gV78ypvYwohHmdjP3lN5F97PfmxuV91tvw5gsYeZ7i8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
astropy-helpers
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|