Skip to content

Commit

Permalink
python3Packages.hcipy: init at 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BarrOff committed Nov 10, 2024
1 parent 6044521 commit aa5a815
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
76 changes: 76 additions & 0 deletions pkgs/development/python-modules/hcipy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,

# build-system
setuptools,
setuptools-scm,

# dependencies
numpy,
scipy,
matplotlib,
pillow,
pyyaml,
astropy,
imageio,
xxhash,
numexpr,
asdf,

# tests
pytest-cov-stub,
pytestCheckHook,
mpmath,
dill,
}:

buildPythonPackage rec {
pname = "hcipy";
version = "0.6.0";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-Kt2T6EgCrPTJGiygjmFUh1HH1DthFcZ2mMlnlu0HxsE=";
};

build-system = [
setuptools
setuptools-scm
];

dependencies = [
numpy
scipy
matplotlib
pillow
pyyaml
astropy
imageio
xxhash
numexpr
asdf
];

pythonImportsCheck = [ "hcipy" ];

nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
mpmath
dill
];

meta = {
description = "Framework for performing optical propagation simulations, meant for high contrast imaging";
changelog = "https://github.com/ehpor/hcipy/blob/master/doc/changelog.rst";
homepage = "https://hcipy.org/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ BarrOff ];
# seems to be broken on arm, see: https://github.com/NixOS/nixpkgs/pull/341906
broken = stdenv.isAarch64;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5561,6 +5561,8 @@ self: super: with self; {

haystack-ai = callPackage ../development/python-modules/haystack-ai { };

hcipy = callPackage ../development/python-modules/hcipy { };

hcloud = callPackage ../development/python-modules/hcloud { };

hcs-utils = callPackage ../development/python-modules/hcs-utils { };
Expand Down

0 comments on commit aa5a815

Please sign in to comment.