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
];
preBuild = ''
cat >setup.py <<'EOF'
from setuptools import setup
setup(
name='${pname}',
version='${version}',
author='deter0',
description='${meta.description}',
install_requires=['pycairo', 'requests', 'PyGObject'],
scripts=[
'xborders',
],
)
EOF
postPatch = let
setup = pkgs.substituteAll {
src = ./setup.py;
desc = meta.description; # "description" is reserved
inherit pname version;
};
in ''
ln -s ${setup} setup.py
'';
meta = with lib; {

Loading…
Cancel
Save