Skip to content

Commit

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

# build-system
setuptools-scm,

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

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

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

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

build-system = [ setuptools-scm ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];

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

pythonImportsCheck = [ "hcipy" ];

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

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 ];
};
}
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 abf582f

Please sign in to comment.