pythonPackages.psautohint: init at 2.1.0
This commit is contained in:
parent
40c0cde72e
commit
e871d7ad35
40
pkgs/development/python-modules/psautohint/default.nix
Normal file
40
pkgs/development/python-modules/psautohint/default.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
||||||
|
, fonttools, lxml, fs
|
||||||
|
, setuptools_scm
|
||||||
|
, pytest, pytestcov, pytest_xdist, pytest-randomly
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "psautohint";
|
||||||
|
version = "2.1.0";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "adobe-type-tools";
|
||||||
|
repo = pname;
|
||||||
|
sha256 = "1k1rx1adqxdxj5v3788lwnvygylp73sps1p0q44hws2vmsag2s8r";
|
||||||
|
rev = "v${version}";
|
||||||
|
fetchSubmodules = true; # data dir for tests
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
echo '#define PSAUTOHINT_VERSION "${version}"' > libpsautohint/src/version.h
|
||||||
|
sed -i '/use_scm_version/,+3d' setup.py
|
||||||
|
sed -i '/setup(/a \ version="${version}",' setup.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ fonttools lxml fs ];
|
||||||
|
|
||||||
|
checkInputs = [ pytest pytestcov pytest_xdist pytest-randomly ];
|
||||||
|
checkPhase = "pytest tests";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Script to normalize the XML and other data inside of a UFO";
|
||||||
|
homepage = "https://github.com/adobe-type-tools/psautohint";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = [ maintainers.sternenseemann ];
|
||||||
|
};
|
||||||
|
}
|
@ -5500,6 +5500,8 @@ in {
|
|||||||
protobuf = pkgs.protobuf;
|
protobuf = pkgs.protobuf;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
psautohint = callPackage ../development/python-modules/psautohint { };
|
||||||
|
|
||||||
psd-tools = callPackage ../development/python-modules/psd-tools { };
|
psd-tools = callPackage ../development/python-modules/psd-tools { };
|
||||||
|
|
||||||
psutil = callPackage ../development/python-modules/psutil { };
|
psutil = callPackage ../development/python-modules/psutil { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user