nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 67 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 numpy, 7 cffi, 8 fenics-ufl, 9 fenics-basix, 10 sympy, 11 numba, 12 pytestCheckHook, 13 addBinToPathHook, 14}: 15 16buildPythonPackage (finalAttrs: { 17 pname = "fenics-ffcx"; 18 version = "0.10.1.post0"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "fenics"; 23 repo = "ffcx"; 24 tag = "v${finalAttrs.version}"; 25 hash = "sha256-uV3sfK6tpdoVf+O/EYZw3yR1PdqkoXt4q66zwQ8h/Ks="; 26 }; 27 28 pythonRelaxDeps = [ 29 "fenics-ufl" 30 ]; 31 32 build-system = [ 33 setuptools 34 ]; 35 36 dependencies = [ 37 numpy 38 cffi 39 setuptools 40 fenics-ufl 41 fenics-basix 42 ]; 43 44 pythonImportsCheck = [ 45 "ffcx" 46 ]; 47 48 nativeCheckInputs = [ 49 sympy 50 numba 51 pytestCheckHook 52 addBinToPathHook 53 ]; 54 55 meta = { 56 homepage = "https://fenicsproject.org"; 57 downloadPage = "https://github.com/fenics/ffcx"; 58 description = "FEniCSx Form Compiler"; 59 changelog = "https://github.com/fenics/ffcx/releases/tag/v${finalAttrs.version}"; 60 mainProgram = "ffcx"; 61 license = with lib.licenses; [ 62 unlicense 63 lgpl3Plus 64 ]; 65 maintainers = with lib.maintainers; [ qbisi ]; 66 }; 67})