2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
dotmap,
|
|
|
|
matplotlib,
|
|
|
|
pyclipper,
|
|
|
|
unittestCheckHook,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pyclipper ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [
|
|
|
|
dotmap
|
|
|
|
matplotlib
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
unittestFlagsArray = [
|
|
|
|
"-s"
|
|
|
|
"test"
|
|
|
|
"-v"
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|