python3.pkgs.statmake: init at 0.4.1
This commit is contained in:
parent
542e72a5bc
commit
db139f1cc9
2 changed files with 59 additions and 0 deletions
57
pkgs/development/python-modules/statmake/default.nix
Normal file
57
pkgs/development/python-modules/statmake/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, attrs
|
||||
, cattrs
|
||||
, fonttools
|
||||
, fs
|
||||
, pytestCheckHook
|
||||
, ufo2ft
|
||||
, ufoLib2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "statmake";
|
||||
version = "0.4.1";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "daltonmaag";
|
||||
repo = "statmake";
|
||||
rev = "v${version}";
|
||||
sha256 = "OXhoQAD4LEh80iRUZE2z8sCtWJDv/bSo0bwHbOOPVE0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
cattrs
|
||||
fonttools
|
||||
# required by fonttools[ufo]
|
||||
fs
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
ufo2ft
|
||||
ufoLib2
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/daltonmaag/statmake/pull/41
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'requires = ["poetry>=1.0.0"]' 'requires = ["poetry-core"]' \
|
||||
--replace 'build-backend = "poetry.masonry.api"' 'build-backend = "poetry.core.masonry.api"'
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Applies STAT information from a Stylespace to a variable font";
|
||||
homepage = "https://github.com/daltonmaag/statmake";
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
|
@ -9408,6 +9408,8 @@ in {
|
|||
|
||||
statistics = callPackage ../development/python-modules/statistics { };
|
||||
|
||||
statmake = callPackage ../development/python-modules/statmake { };
|
||||
|
||||
statsd = callPackage ../development/python-modules/statsd { };
|
||||
|
||||
statsmodels = callPackage ../development/python-modules/statsmodels { };
|
||||
|
|
Loading…
Reference in a new issue