Files
nixpkgs/pkgs/development/python-modules/bezier/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
buildPythonPackage,
setuptools,
numpy,
matplotlib,
scipy,
sympy,
cmake,
gfortran,
nix-update-script,
}:
buildPythonPackage rec {
name = "bezier";
version = "2024.6.20";
src = fetchFromGitHub {
owner = "dhermes";
repo = "bezier";
tag = version;
hash = "sha256-TH3x6K5S3uV/K/5e+TXCSiJsyJE0tZ+8ZLc+i/x/fV8=";
};
pyproject = true;
build-system = [ setuptools ];
dependencies = [ numpy ];
optional-dependencies = {
full = [
matplotlib
scipy
sympy
];
};
env = {
BEZIER_IGNORE_VERSION_CHECK = 1;
BEZIER_INSTALL_PREFIX = stdenv.mkDerivation {
name = "bezier-fortran-extension";
inherit version src;
sourceRoot = "${src.name}/src/fortran";
nativeBuildInputs = [
cmake
gfortran
];
};
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=incompatible-pointer-types"
];
};
pythonImportsCheck = [ "bezier" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Helper for Bézier Curves, Triangles, and Higher Order Objects";
changelog = "https://bezier.readthedocs.io/en/latest/releases/latest.html";
homepage = "https://github.com/dhermes/bezier";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ WeetHet ];
};
}