Merge pull request #326696 from Sigmanificient/AeroSandbox

python312Packages.aerosandbox: init at 4.2.5; python312Packages.neurafoil: init at 0.2.3
This commit is contained in:
Pol Dellaiera 2024-08-20 10:42:43 +02:00 committed by GitHub
commit 6a58cdfc7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
numpy,
scipy,
pandas,
matplotlib,
seaborn,
tqdm,
sortedcontainers,
dill,
casadi,
}:
buildPythonPackage rec {
pname = "aerosandbox";
version = "4.2.5";
format = "wheel";
src = fetchPypi {
pname = "AeroSandbox";
inherit version format;
python = "py3";
dist = "py3";
hash = "sha256-9WxeXmcOZpKpNn8r6REudQlDRXavym52tvKajYJIfXA=";
};
build-system = [ setuptools ];
dependencies = [
numpy
scipy
pandas
matplotlib
seaborn
tqdm
sortedcontainers
dill
casadi
];
pythonImportsCheck = [ "aerosandbox" ];
meta = {
description = "Aircraft design optimization made fast through modern automatic differentiation";
homepage = "https://peterdsharpe.github.io/AeroSandbox";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
};
}

View File

@ -0,0 +1,39 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
numpy,
aerosandbox,
pytestCheckHook,
}:
buildPythonPackage {
pname = "neuralfoil";
version = "0.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "peterdsharpe";
repo = "NeuralFoil";
rev = "46cda4041134d1b1794d3a81761d8d3e63f20855";
hash = "sha256-kbPHPJh8xcIdPYIiaxwYqpfcnYzzDD6F0tG3flR0j3M=";
};
build-system = [ setuptools ];
dependencies = [
numpy
aerosandbox
];
pythonImportsCheck = [ "neuralfoil" ];
nativeBuildInputs = [ pytestCheckHook ];
meta = {
description = "Airfoil aerodynamics analysis tool using physics-informed machine learning, in pure Python/NumPy";
homepage = "https://github.com/peterdsharpe/NeuralFoil";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
};
}

View File

@ -101,6 +101,8 @@ self: super: with self; {
aeppl = callPackage ../development/python-modules/aeppl { };
aerosandbox = callPackage ../development/python-modules/aerosandbox { };
aesara = callPackage ../development/python-modules/aesara { };
aesedb = callPackage ../development/python-modules/aesedb { };
@ -9096,6 +9098,8 @@ self: super: with self; {
networkx = callPackage ../development/python-modules/networkx { };
neuralfoil = callPackage ../development/python-modules/neuralfoil { };
neuron-full = pkgs.neuron-full.override { python3 = python; };
neuronpy = toPythonModule neuron-full;