Compare commits
2 commits
e799468cde
...
a49d9ac0ca
Author | SHA1 | Date | |
---|---|---|---|
a49d9ac0ca | |||
a0f85bf7fd |
2 changed files with 22 additions and 16 deletions
12
modules/xborders/setup.py
Normal file
12
modules/xborders/setup.py
Normal 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',
|
||||
],
|
||||
)
|
|
@ -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; {
|
||||
|
|
Loading…
Add table
Reference in a new issue