summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/neuralfoil/default.nix
blob: f217b740e17e4776f44a3d382ab9c70e17c47574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 ];
  };
}