uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
75
pkgs/development/python-modules/statmake/default.nix
Normal file
75
pkgs/development/python-modules/statmake/default.nix
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
{ lib
|
||||
, attrs
|
||||
, buildPythonPackage
|
||||
, cattrs
|
||||
, fetchFromGitHub
|
||||
, fonttools
|
||||
, fs
|
||||
, importlib-metadata
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, ufo2ft
|
||||
, ufoLib2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "statmake";
|
||||
version = "0.4.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "daltonmaag";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-OXhoQAD4LEh80iRUZE2z8sCtWJDv/bSo0bwHbOOPVE0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
cattrs
|
||||
fonttools
|
||||
# required by fonttools[ufo]
|
||||
fs
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
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"' \
|
||||
--replace 'cattrs = "^1.1"' 'cattrs = ">= 1.1"'
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# cattrs.errors.IterableValidationError: While structuring typing.List[statmake.classes.Axis]
|
||||
# https://github.com/daltonmaag/statmake/issues/42
|
||||
"test_load_stylespace_broken_range"
|
||||
"test_load_stylespace_broken_multilingual_no_en"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"statmake"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Applies STAT information from a Stylespace to a variable font";
|
||||
homepage = "https://github.com/daltonmaag/statmake";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jtojnar ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue