depot/third_party/nixpkgs/pkgs/development/python-modules/beziers/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
900 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 ];
};
}