python39Packages.clickgen: 1.1.9 -> 1.2.0, mark as broken on darwin
This commit is contained in:
parent
8df07404e3
commit
2fb4326ff6
1 changed files with 22 additions and 6 deletions
|
@ -1,5 +1,8 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, pythonAtLeast
|
||||
, fetchFromGitHub
|
||||
, pillow
|
||||
, libX11
|
||||
|
@ -11,26 +14,38 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "clickgen";
|
||||
version = "1.1.9";
|
||||
version = "1.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8" || pythonAtLeast "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ful1e5";
|
||||
repo = "clickgen";
|
||||
rev = "v${version}";
|
||||
sha256 = "108f3sbramd3hhs4d84s3i3lbwllfrkvjakjq4gdmbw6xpilvm0l";
|
||||
sha256 = "sha256-01c8SVy+J004dq5KCUe62w7i/xUTxTfl/IpvUtGQgw0=";
|
||||
};
|
||||
|
||||
buildInputs = [ libXcursor libX11 libpng ];
|
||||
|
||||
propagatedBuildInputs = [ pillow ];
|
||||
|
||||
pythonImportsCheck = [ "clickgen" ];
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
postInstall = ''
|
||||
install -m644 clickgen/xcursorgen.so $out/${python.sitePackages}/clickgen/xcursorgen.so
|
||||
postBuild = ''
|
||||
# Needs to build xcursorgen.so
|
||||
cd src/xcursorgen
|
||||
make
|
||||
cd ../..
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
postInstall = ''
|
||||
install -m644 src/xcursorgen/xcursorgen.so $out/${python.sitePackages}/clickgen/xcursorgen.so
|
||||
# Copying scripts directory needed by clickgen script at $out/bin/
|
||||
cp -R src/clickgen/scripts $out/${python.sitePackages}/clickgen/scripts
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "clickgen" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ful1e5/clickgen";
|
||||
|
@ -41,5 +56,6 @@ buildPythonPackage rec {
|
|||
'';
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ AdsonCicilioti ];
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue