nixpkgs/pkgs/development/python-modules/beziers/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

42 lines
883 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, dotmap
, matplotlib
, pyclipper
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "beziers";
version = "0.5.0";
format = "setuptools";
# PyPI doesn't have a proper source tarball, fetch from Github instead
src = fetchFromGitHub {
owner = "simoncozens";
repo = "beziers.py";
rev = "v${version}";
hash = "sha256-4014u7s47Tfdpa2Q9hKAoHg7Ebcs1/DVW5TpEmoh2bc=";
};
propagatedBuildInputs = [
pyclipper
];
doCheck = true;
nativeCheckInputs = [
dotmap
matplotlib
unittestCheckHook
];
unittestFlagsArray = [ "-s" "test" "-v" ];
meta = with lib; {
description = "Python library for manipulating Bezier curves and paths in fonts";
homepage = "https://github.com/simoncozens/beziers.py";
license = licenses.mit;
maintainers = with maintainers; [ danc86 ];
};
}