Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9055b33db045
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 97042d883f39
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Mar 14, 2019

  1. pythonPackages.qdarkstyle: init at 2.6.5

    (cherry picked from commit 9b9f4d9)
    nyanloutre authored and Robert Schütz committed Mar 14, 2019
    Copy the full SHA
    3eb63d1 View commit details
  2. electron-cash: 3.3.2 -> 3.3.6

    Missing dependency and cleanup of the build process
    
    (cherry picked from commit 32c2057)
    nyanloutre authored and Robert Schütz committed Mar 14, 2019
    Copy the full SHA
    97042d8 View commit details
Showing with 39 additions and 21 deletions.
  1. +15 −21 pkgs/applications/misc/electron-cash/default.nix
  2. +22 −0 pkgs/development/python-modules/qdarkstyle/default.nix
  3. +2 −0 pkgs/top-level/python-packages.nix
36 changes: 15 additions & 21 deletions pkgs/applications/misc/electron-cash/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, python3Packages, qtbase, makeWrapper, lib }:
{ lib, fetchurl, python3Packages, qtbase, makeWrapper }:

let

@@ -7,14 +7,14 @@ let
in

python3Packages.buildPythonApplication rec {
version = "3.3.2";
name = "electron-cash-${version}";
pname = "electron-cash";
version = "3.3.6";

src = fetchurl {
url = "https://electroncash.org/downloads/${version}/win-linux/ElectronCash-${version}.tar.gz";
url = "https://electroncash.org/downloads/${version}/win-linux/Electron-Cash-${version}.tar.gz";
# Verified using official SHA-1 and signature from
# https://github.com/fyookball/keys-n-hashes
sha256 = "4538044cfaa4f87a847635849e0733f32b183ac79abbd2797689c86dc3cb0d53";
sha256 = "ac435f2bf98b9b50c4bdcc9e3fb2ff19d9c66f8cce5df852f3a4727306bb0a84";
};

propagatedBuildInputs = with python3Packages; [
@@ -30,6 +30,7 @@ python3Packages.buildPythonApplication rec {
qrcode
requests
tlslite-ng
qdarkstyle

# plugins
keepkey
@@ -40,25 +41,18 @@ python3Packages.buildPythonApplication rec {
nativeBuildInputs = [ makeWrapper ];

postPatch = ''
# Remove pyqt5 check
sed -i '/pyqt5/d' setup.py
'';
substituteInPlace contrib/requirements/requirements.txt \
--replace "qdarkstyle<2.6" "qdarkstyle<3"
preBuild = ''
pyrcc5 icons.qrc -o gui/qt/icons_rc.py
# Recording the creation timestamps introduces indeterminism to the build
sed -i '/Created: .*/d' gui/qt/icons_rc.py
substituteInPlace setup.py \
--replace "(share_dir" "(\"share\""
'';

doCheck = false;

postInstall = ''
# These files are installed under $out/homeless-shelter ...
mv $out/${python.sitePackages}/homeless-shelter/.local/share $out
rm -rf $out/${python.sitePackages}/homeless-shelter
substituteInPlace $out/share/applications/electron-cash.desktop \
--replace "Exec=electron-cash %u" "Exec=$out/bin/electron-cash %u"
--replace "Exec=electron-cash" "Exec=$out/bin/electron-cash"
# Please remove this when #44047 is fixed
wrapProgram $out/bin/electron-cash \
@@ -70,17 +64,17 @@ python3Packages.buildPythonApplication rec {
$out/bin/electron-cash help >/dev/null
'';

meta = with stdenv.lib; {
description = "A lightweight Bitcoin wallet";
meta = with lib; {
description = "A Bitcoin Cash SPV Wallet";
longDescription = ''
An easy-to-use Bitcoin client featuring wallets generated from
An easy-to-use Bitcoin Cash client featuring wallets generated from
mnemonic seeds (in addition to other, more advanced, wallet options)
and the ability to perform transactions without downloading a copy
of the blockchain.
'';
homepage = https://www.electroncash.org/;
platforms = platforms.linux;
maintainers = with maintainers; [ lassulus ];
maintainers = with maintainers; [ lassulus nyanloutre ];
license = licenses.mit;
};
}
22 changes: 22 additions & 0 deletions pkgs/development/python-modules/qdarkstyle/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ lib, fetchPypi, buildPythonPackage }:

buildPythonPackage rec {
pname = "qdarkstyle";
version = "2.6.5";

src = fetchPypi {
inherit version;
pname = "QDarkStyle";
sha256 = "96b14cd0440a0f73db4e14c5accdaa08072625d0395ae011d444508cbd73eb9e";
};

# No tests available
doCheck = false;

meta = with lib; {
description = "A dark stylesheet for Python and Qt applications";
homepage = https://github.com/ColinDuquesnoy/QDarkStyleSheet;
license = licenses.mit;
maintainers = with maintainers; [ nyanloutre ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -3953,6 +3953,8 @@ in {

retry_decorator = callPackage ../development/python-modules/retry_decorator { };

qdarkstyle = callPackage ../development/python-modules/qdarkstyle { };

quamash = callPackage ../development/python-modules/quamash { };

quandl = callPackage ../development/python-modules/quandl { };