buildPython*: use pname

gstqt5
Frederik Rietdijk 2020-03-29 12:34:50 +02:00
parent 237bf9e7bc
commit 46ec52f329
24 changed files with 55 additions and 46 deletions

View File

@ -5,13 +5,14 @@
}:
buildPythonPackage rec {
name = "CDDB-1.4";
pname = "CDDB";
version = "1.4";
disabled = isPy3k;
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.IOKit ];
src = pkgs.fetchurl {
url = "http://cddb-py.sourceforge.net/${name}.tar.gz";
url = "http://cddb-py.sourceforge.net/${pname}-${version}.tar.gz";
sha256 = "098xhd575ibvdx7i3dny3lwi851yxhjg2hn5jbbgrwj833rg5l5w";
};

View File

@ -7,7 +7,8 @@
}:
buildPythonPackage {
name = "deskcon-0.3";
pname = "deskcon";
version = "0.3";
disabled = isPy3k;
src = pkgs.fetchFromGitHub {

View File

@ -8,7 +8,8 @@
}:
buildPythonPackage {
name = "gateone-1.2-0d57c3";
pname = "gateone";
version = "1.2-0d57c3";
disabled = isPy3k;
src = pkgs.fetchFromGitHub {

View File

@ -6,7 +6,8 @@
}:
buildPythonPackage {
name = "mutag-0.0.2-2ffa0258ca";
pname = "mutag";
version = "0.0.2-2ffa0258ca";
disabled = ! isPy3k;
src = fetchgit {

View File

@ -1,20 +1,18 @@
{ stdenv
, buildPythonPackage
, pkgs
, notmuch
, python
}:
buildPythonPackage {
name = "python-${pkgs.notmuch.name}";
inherit (notmuch) pname version src;
src = pkgs.notmuch.src;
sourceRoot = notmuch.pythonSourceRoot;
sourceRoot = pkgs.notmuch.pythonSourceRoot;
buildInputs = [ python pkgs.notmuch ];
buildInputs = [ python notmuch ];
postPatch = ''
sed -i -e '/CDLL/s@"libnotmuch\.@"${pkgs.notmuch}/lib/libnotmuch.@' \
sed -i -e '/CDLL/s@"libnotmuch\.@"${notmuch}/lib/libnotmuch.@' \
notmuch/globals.py
'';

View File

@ -7,8 +7,8 @@
}:
buildPythonPackage {
name = "slob";
verison = "unstable-2016-11-03";
pname = "slob";
version = "unstable-2016-11-03";
disabled = !isPy3k;
src = fetchFromGitHub {

View File

@ -6,7 +6,8 @@
}:
buildPythonPackage {
name = "tkinter-${python.version}";
pname = "tkinter";
version = python.version;
src = py;
format = "other";

View File

@ -1,7 +1,7 @@
{ lib, buildPythonApplication, fetchFromGitHub, python3Packages, pyqtwebengine, lilypond }:
buildPythonApplication rec {
name = "frescobaldi-${version}";
pname = "frescobaldi";
version = "3.1.1";
src = fetchFromGitHub {

View File

@ -4,8 +4,8 @@
}:
python.pkgs.buildPythonApplication rec {
pname = "bcc";
version = "0.13.0";
name = "bcc-${version}";
src = fetchurl {
url = "https://github.com/iovisor/bcc/releases/download/v${version}/bcc-src-with-submodule.tar.gz";

View File

@ -1,7 +1,8 @@
{ stdenv, fetchurl, cmake, python2, boost, libuuid, ruby, buildEnv, buildPythonPackage, qpid-python }:
let
name = "qpid-cpp-${version}";
pname = "qpid-cpp";
name = "${pname}-${version}";
version = "1.39.0";
src = fetchurl {
@ -20,7 +21,7 @@ let
};
qpid-cpp = stdenv.mkDerivation {
inherit src meta name;
inherit src meta pname version;
nativeBuildInputs = [ cmake ];
buildInputs = [ boost libuuid ruby python2 ];
@ -46,7 +47,7 @@ let
};
python-frontend = buildPythonPackage {
inherit name meta src;
inherit pname version meta src;
sourceRoot = "${name}/management/python";

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, python2, makeWrapper }:
python2.pkgs.buildPythonApplication rec {
name = "headphones-${version}";
pname = "headphones";
version = "0.5.19";
src = fetchFromGitHub {

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl, python3Packages }:
python3Packages.buildPythonPackage rec {
name = "hyp-server-${version}";
pname = "hyp-server";
version = "1.2.0";
src = fetchurl {
url = "mirror://pypi/h/hyp-server/${name}.tar.gz";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "1lafjdcn9nnq6xc3hhyizfwh6l69lc7rixn6dx65aq71c913jc15";
};

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, python2, makeWrapper }:
python2.pkgs.buildPythonApplication rec {
name = "sickrage-${version}";
pname = "sickrage";
version = "v2018.07.21-1";
src = fetchFromGitHub {

View File

@ -5,8 +5,11 @@
let
inherit (python3Packages) buildPythonApplication docutils pygobject3;
pname = "arandr";
version = "0.1.10";
name = "${pname}-${version}";
in buildPythonApplication rec {
name = "arandr-0.1.10";
inherit pname version;
src = fetchurl {
url = "https://christian.amsuess.com/tools/arandr/files/${name}.tar.gz";

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl, desktop-file-utils, file, python3Packages }:
python3Packages.buildPythonApplication rec {
name = "mimeo-${version}";
pname = "mimeo";
version = "2019.7";
src = fetchurl {
url = "https://xyne.archlinux.ca/projects/mimeo/src/${name}.tar.xz";
url = "https://xyne.archlinux.ca/projects/mimeo/src/${pname}-${version}.tar.xz";
sha256 = "0nzn7qvmpbb17d6q16llnhz1qdmyg718q59ic4gw2rq23cd6q47r";
};

View File

@ -2,9 +2,8 @@
, python3Packages, substituteAll }:
python3Packages.buildPythonApplication rec {
name = "trash-cli-${version}";
pname = "trash-cli";
version = "0.17.1.14";
namePrefix = "";
src = fetchFromGitHub {
owner = "andreafrancia";

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, fetchurl, python3Packages }:
python3Packages.buildPythonApplication rec {
name = "unicode-${version}";
pname = "unicode";
version = "2.6";
src = fetchFromGitHub {

View File

@ -1,7 +1,7 @@
{ stdenv, lib, fetchFromGitHub, pythonPackages, nasm, libelf
, kernel ? null, withDriver ? false }:
pythonPackages.buildPythonApplication rec {
name = "chipsec-${version}";
pname = "chipsec";
version = "1.4.7";
src = fetchFromGitHub {

View File

@ -1,8 +1,9 @@
{ stdenv, fetchFromGitHub, python2Packages, hping }:
python2Packages.buildPythonApplication rec {
let
rev = "bf14bbff";
name = "knockknock-r${rev}";
in python2Packages.buildPythonApplication rec {
pname = "knockknock-r";
version = rev;
src = fetchFromGitHub {
inherit rev;

View File

@ -2,12 +2,12 @@
, coreutils, iptables, nettools, openssh, procps }:
python3Packages.buildPythonApplication rec {
name = "sshuttle-${version}";
pname = "sshuttle";
version = "0.78.5";
src = fetchurl {
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "0vp13xwrhx4m6zgsyzvai84lkq9mzkaw47j58dk0ll95kaymk2x8";
url = "mirror://pypi/s/sshuttle/${name}.tar.gz";
};
patches = [ ./sudo.patch ];

View File

@ -1,11 +1,11 @@
{ fetchurl, stdenv, python3Packages, texinfo }:
python3Packages.buildPythonApplication rec {
name = "rubber-${version}";
pname = "rubber";
version = "1.5.1";
src = fetchurl {
url = "https://launchpad.net/rubber/trunk/${version}/+download/${name}.tar.gz";
url = "https://launchpad.net/rubber/trunk/${version}/+download/${pname}-${version}.tar.gz";
sha256 = "178dmrp0mza5gqjiqgk6dqs0c10s0c517pk6k9pjbam86vf47a1p";
};

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl, pythonPackages }:
pythonPackages.buildPythonApplication rec {
name = "vnc2flv-20100207";
namePrefix = "";
pname = "vnc2flv";
version = "20100207";
src = fetchurl {
url = "mirror://pypi/v/vnc2flv/${name}.tar.gz";
url = "mirror://pypi/v/vnc2flv/${pname}-${version}.tar.gz";
sha256 = "14d4nm8yim0bm0nd3wyj7z4zdsg5zk3d9bhhvwdc36x03r8d0sbq";
};

View File

@ -3,8 +3,8 @@
let
inherit (python2Packages) buildPythonApplication boto m2crypto;
in buildPythonApplication {
name = "euca2ools-2.1.4";
namePrefix = "";
pname = "euca2ools";
version = "2.1.4";
src = fetchgit {
url = https://github.com/eucalyptus/euca2ools.git;

View File

@ -4590,7 +4590,9 @@ in {
notify2 = callPackage ../development/python-modules/notify2 {};
notmuch = callPackage ../development/python-modules/notmuch { };
notmuch = callPackage ../development/python-modules/notmuch {
inherit (pkgs) notmuch;
};
emoji = callPackage ../development/python-modules/emoji { };