cbor2 for Python 2 on Nix.

This commit is contained in:
Itamar Turner-Trauring 2021-11-23 10:44:45 -05:00
parent a593095dc9
commit 8abc1ad8f4
2 changed files with 21 additions and 0 deletions

18
nix/cbor2.nix Normal file
View File

@ -0,0 +1,18 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "cbor2";
version = "5.2.0";
src = fetchPypi {
sha256 = "1mmmncfbsx7cbdalcrsagp9hx7wqfawaz9361gjkmsk3lp6chd5w";
inherit pname version;
};
doCheck = false;
meta = with lib; {
homepage = https://github.com/agronholm/cbor2;
description = "CBOR encoder/decoder";
license = licenses.mit;
};
}

View File

@ -21,6 +21,9 @@ self: super: {
# collections-extended is not part of nixpkgs at this time.
collections-extended = python-super.pythonPackages.callPackage ./collections-extended.nix { };
# cbor2 is not part of nixpkgs at this time.
cbor2 = python-super.pythonPackages.callPackage ./cbor2.nix { };
};
};