From 7c5e8f44a9fc9bd12c5fc321fad9c7676007e578 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 19 Apr 2022 08:21:36 +0200 Subject: [PATCH] python3Packages.bitstruct: add pythonImportsCheck --- .../python-modules/bitstruct/default.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/bitstruct/default.nix b/pkgs/development/python-modules/bitstruct/default.nix index cf9266d56638..8279f0ac9769 100644 --- a/pkgs/development/python-modules/bitstruct/default.nix +++ b/pkgs/development/python-modules/bitstruct/default.nix @@ -1,17 +1,28 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +}: buildPythonPackage rec { pname = "bitstruct"; version = "8.14.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-IwwZHHXxUm9pIs2wjqtvUsBVRS4iOb9WOPAunP04LJE="; + hash = "sha256-IwwZHHXxUm9pIs2wjqtvUsBVRS4iOb9WOPAunP04LJE="; }; + pythonImportsCheck = [ + "bitstruct" + ]; + meta = with lib; { - homepage = "https://github.com/eerimoq/bitstruct"; description = "Python bit pack/unpack package"; + homepage = "https://github.com/eerimoq/bitstruct"; license = licenses.mit; maintainers = with maintainers; [ jakewaksbaum ]; };