Compare commits

..

2 commits

Author SHA1 Message Date
a49d9ac0ca xborders: update 2023-02-25 20:51:40 -08:00
a0f85bf7fd xborders: setup.py in separate file 2023-02-25 20:42:43 -08:00
2 changed files with 22 additions and 16 deletions

12
modules/xborders/setup.py Normal file
View file

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

View file

@ -7,8 +7,8 @@ with pkgs; callPackage python3Packages.buildPythonPackage rec {
src = fetchFromGitHub {
owner = "deter0";
repo = "xborder";
rev = "8a031736c9e89a031428f33adcd42da7512d558e";
sha256 = "sha256-y+Cip5fcDqnJr0aI3jqJMTt6iCV0faunM+Gk6HFZ5iA=";
rev = "e74ae532b9555c59d195537934fa355b3fea73c5";
hash = "sha256-UKsseNkXest6npPqJKvKL0iBWeK+S7zynrDlyXIOmF4=";
};
buildInputs = [
@ -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; {