mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 23:03:41 +00:00
02dab4ab5c
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
42 lines
883 B
Nix
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 ];
|
|
};
|
|
}
|