1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 numpy,
7 aerosandbox,
8 pytestCheckHook,
9}:
10
11buildPythonPackage {
12 pname = "neuralfoil";
13 version = "0.2.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "peterdsharpe";
18 repo = "NeuralFoil";
19 rev = "46cda4041134d1b1794d3a81761d8d3e63f20855";
20 hash = "sha256-kbPHPJh8xcIdPYIiaxwYqpfcnYzzDD6F0tG3flR0j3M=";
21 };
22
23 build-system = [ setuptools ];
24 dependencies = [
25 numpy
26 aerosandbox
27 ];
28
29 pythonImportsCheck = [ "neuralfoil" ];
30
31 nativeBuildInputs = [ pytestCheckHook ];
32
33 meta = {
34 description = "Airfoil aerodynamics analysis tool using physics-informed machine learning, in pure Python/NumPy";
35 homepage = "https://github.com/peterdsharpe/NeuralFoil";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ sigmanificient ];
38 };
39}