evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / cffsubr / default.nix
blob46dabb2711af75ea444274bb204e96c4c75e0c99
2   stdenv,
3   lib,
4   afdko,
5   buildPythonPackage,
6   cmake,
7   distutils,
8   fetchPypi,
9   fonttools,
10   ninja,
11   pytestCheckHook,
12   scikit-build,
13   setuptools,
14   setuptools-scm,
17 buildPythonPackage rec {
18   pname = "cffsubr";
19   version = "0.3.0";
20   pyproject = true;
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-d0UVC9uBZ5+s3RHB87hwlsT029SVfo/Ou4jEVoeVLvs=";
25   };
27   postPatch = ''
28     substituteInPlace setup.py \
29       --replace-fail 'afdko_output_dir = os.path.join(afdko_root_dir, "build", "bin")' \
30                      'afdko_output_dir = "${lib.getBin afdko}/bin"' \
31       --replace-fail 'build_cmd=build_release_cmd' 'build_cmd="true"'
32   '';
34   build-system = [
35     cmake
36     distutils
37     ninja
38     scikit-build
39     setuptools
40     setuptools-scm
41   ];
43   dontUseCmakeConfigure = true;
45   dependencies = [ fonttools ];
47   nativeCheckInputs = [ pytestCheckHook ];
49   pythonImportsCheck = [ "cffsubr" ];
51   meta = with lib; {
52     broken = stdenv.hostPlatform.isDarwin;
53     changelog = "https://github.com/adobe-type-tools/cffsubr/releases/tag/v${version}";
54     description = "Standalone CFF subroutinizer based on AFDKO tx";
55     mainProgram = "cffsubr";
56     homepage = "https://github.com/adobe-type-tools/cffsubr";
57     license = licenses.asl20;
58     maintainers = [ ];
59   };