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: 6b554cb1dd22
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 45da5ccd52ab
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Jan 2, 2021

  1. Copy the full SHA
    83234f7 View commit details
  2. Merge pull request #108211 from fabaff/blockchain

    python3Packages.blockchain: init at 1.4.4
    prusnak authored Jan 2, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    45da5cc View commit details
Showing with 38 additions and 1 deletion.
  1. +35 −0 pkgs/development/python-modules/blockchain/default.nix
  2. +1 −1 pkgs/servers/home-assistant/component-packages.nix
  3. +2 −0 pkgs/top-level/python-packages.nix
35 changes: 35 additions & 0 deletions pkgs/development/python-modules/blockchain/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchPypi
, future
}:

buildPythonPackage rec {
pname = "blockchain";
version = "1.4.4";

src = fetchPypi {
inherit pname version;
sha256 = "1qpbmz6dk5gx1996dswpipwhj6sp5j0dlfap012l46zqnvmkxanv";
};

postPatch = ''
substituteInPlace setup.py --replace "enum-compat" ""
'';

propagatedBuildInputs = [
future
];

# tests are interacting with the API and not mocking the calls
doCheck = false;

pythonImportsCheck = [ "blockchain" ];

meta = with lib; {
description = "Python client Blockchain Bitcoin Developer API";
homepage = "https://github.com/blockchain/api-v1-client-python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@
"beewi_smartclim" = ps: with ps; [ ]; # missing inputs: beewi_smartclim
"bh1750" = ps: with ps; [ smbus-cffi ]; # missing inputs: i2csense
"binary_sensor" = ps: with ps; [ ];
"bitcoin" = ps: with ps; [ ]; # missing inputs: blockchain
"bitcoin" = ps: with ps; [ blockchain ];
"bizkaibus" = ps: with ps; [ ]; # missing inputs: bizkaibus
"blackbird" = ps: with ps; [ ]; # missing inputs: pyblackbird
"blebox" = ps: with ps; [ ]; # missing inputs: blebox_uniapi
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -916,6 +916,8 @@ in {

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

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

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

blockdiagcontrib-cisco = throw "blockdiagcontrib-cisco is not compatible with blockdiag 2.0.0 and has been removed."; # Added 2020-11-29