python310Packages.ionhash: init at 1.2.1

This commit is contained in:
Terje Larsen 2022-03-30 10:54:59 +02:00
parent 98a2765768
commit 4e2a967566
No known key found for this signature in database
GPG key ID: A88B401A8DB3C7D6
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, amazon-ion, six, pytestCheckHook }:
buildPythonPackage rec {
pname = "ionhash";
version = "1.2.1";
src = fetchFromGitHub {
owner = "amzn";
repo = "ion-hash-python";
rev = "v${version}";
sha256 = "sha256-mXOLKXauWwwIA/LnF4qyZsBiF/QM+rF9MmE2ewmozYo=";
fetchSubmodules = true;
};
patches = [
(fetchpatch {
url = "https://github.com/amzn/ion-hash-python/commit/5cab56d694ecc176e394bb455c2d726ba1514ce0.patch";
sha256 = "sha256-P5QByNafgxI//e3m+b0oG00+rVymCsT/J4dOZSk3354=";
})
];
postPatch = ''
substituteInPlace setup.py --replace "'pytest-runner'," ""
'';
propagatedBuildInputs = [ amazon-ion six ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ionhash" ];
meta = with lib; {
description = "Python implementation of Amazon Ion Hash";
homepage = "https://github.com/amzn/ion-hash-python";
license = licenses.asl20;
maintainers = [ maintainers.terlar ];
};
}

View file

@ -4090,6 +4090,8 @@ in {
iocapture = callPackage ../development/python-modules/iocapture { };
ionhash = callPackage ../development/python-modules/ionhash { };
iotawattpy = callPackage ../development/python-modules/iotawattpy { };
iowait = callPackage ../development/python-modules/iowait { };