From 390684da02cf154c25355212c86609c335414486 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Mar 2021 13:48:33 +0100 Subject: [PATCH] python3Packages.bitlist: init at 0.3.1 --- .../python-modules/bitlist/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/bitlist/default.nix diff --git a/pkgs/development/python-modules/bitlist/default.nix b/pkgs/development/python-modules/bitlist/default.nix new file mode 100644 index 00000000000..ac8cf39cff2 --- /dev/null +++ b/pkgs/development/python-modules/bitlist/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchPypi +, nose +, parts +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "bitlist"; + version = "0.3.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "04dz64r21a39p8wph5qlhvs5y873qgk6xxjlzw8n695b8jm3ixir"; + }; + + propagatedBuildInputs = [ + parts + ]; + + checkInputs = [ + pytestCheckHook + nose + ]; + + pythonImportsCheck = [ "bitlist" ]; + + meta = with lib; { + description = "Python library for working with little-endian list representation of bit strings"; + homepage = "https://github.com/lapets/bitlist"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 810ecb9b86f..de94696c610 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -979,6 +979,8 @@ in { bitcoin-price-api = callPackage ../development/python-modules/bitcoin-price-api { }; + bitlist = callPackage ../development/python-modules/bitlist { }; + bitmath = callPackage ../development/python-modules/bitmath { }; bitstring = callPackage ../development/python-modules/bitstring { };