Files
nixpkgs/pkgs/development/python-modules/pyavm/default.nix
T
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

45 lines
868 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, astropy
, astropy-helpers
, pillow
}:
buildPythonPackage rec {
pname = "pyavm";
version = "0.9.5";
format = "setuptools";
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 ];
};
}