Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 69 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{ 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 ]; };}