xborders: setup.py in separate file

inky
Elnu 2 years ago
parent e799468cde
commit a0f85bf7fd

@ -0,0 +1,12 @@
from setuptools import setup
setup(
name='@pname@',
version='@version@',
author='deter0',
description='@desc@',
install_requires=['pycairo', 'requests', 'PyGObject'],
scripts=[
'xborders',
],
)

@ -28,20 +28,14 @@ with pkgs; callPackage python3Packages.buildPythonPackage rec {
pygobject3 pygobject3
]; ];
preBuild = '' postPatch = let
cat >setup.py <<'EOF' setup = pkgs.substituteAll {
from setuptools import setup src = ./setup.py;
setup( desc = meta.description; # "description" is reserved
name='${pname}', inherit pname version;
version='${version}', };
author='deter0', in ''
description='${meta.description}', ln -s ${setup} setup.py
install_requires=['pycairo', 'requests', 'PyGObject'],
scripts=[
'xborders',
],
)
EOF
''; '';
meta = with lib; { meta = with lib; {

Loading…
Cancel
Save