2021-07-22 23:24:08 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-11-27 09:51:59 -08:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2022-08-06 12:32:04 -04:00
|
|
|
, unittestCheckHook
|
2021-07-22 23:24:08 +02:00
|
|
|
}:
|
2017-10-29 11:40:45 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bitstring";
|
2022-11-27 09:51:59 -08:00
|
|
|
version = "4.0.1";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2017-10-29 11:40:45 +01:00
|
|
|
|
2021-07-22 23:24:08 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scott-griffiths";
|
|
|
|
repo = pname;
|
|
|
|
rev = "bitstring-${version}";
|
2022-11-27 09:51:59 -08:00
|
|
|
hash = "sha256-eHP20F9PRe9ZNXjcDcsI3iFVswA6KtRWhBMAT7dkCv0=";
|
2017-10-29 11:40:45 +01:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:51:59 -08:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2022-08-19 16:10:07 -07:00
|
|
|
];
|
|
|
|
|
2022-08-06 12:32:04 -04:00
|
|
|
checkInputs = [ unittestCheckHook ];
|
|
|
|
|
2021-07-22 23:24:08 +02:00
|
|
|
pythonImportsCheck = [ "bitstring" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-10-29 11:40:45 +01:00
|
|
|
description = "Module for binary data manipulation";
|
|
|
|
homepage = "https://github.com/scott-griffiths/bitstring";
|
|
|
|
license = licenses.mit;
|
2019-02-17 14:00:33 +01:00
|
|
|
platforms = platforms.unix;
|
2017-10-29 11:40:45 +01:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
}
|