1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 wheel,
7 numpy,
8 sympy,
9 frozendict,
10}:
11
12buildPythonPackage rec {
13 pname = "einx";
14 version = "0.3.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "fferflo";
19 repo = "einx";
20 rev = "v${version}";
21 hash = "sha256-lbcf47h1tW1fj94NLG4iJPEs6ziGPkcX1Q+wn59PvS8=";
22 };
23
24 build-system = [
25 setuptools
26 wheel
27 ];
28
29 dependencies = [
30 numpy
31 sympy
32 frozendict
33 ];
34
35 pythonImportsCheck = [
36 "einx"
37 ];
38
39 meta = {
40 description = "Universal Tensor Operations in Einstein-Inspired Notation for Python";
41 homepage = "https://github.com/fferflo/einx";
42 changelog = "https://github.com/fferflo/einx/blob/${src.rev}/CHANGELOG.md";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [ happysalada ];
45 };
46}