git.iko.soy/typeable/nixpkgs
on master help sign in
python310Packages.ionhash: init at 1.2.1
commit4e2a9675660d3093c0f69658b97f9dd1966eb03b authorTerje Larsen <terlar@gmail.com> dateWed 30 Mar 2022, 10:54 (5 years ago) parent98a2765
2 files changed+40
pkgs/development/python-modules/ionhash/default.nix+38 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/ionhash/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, amazon-ion, six, pytestCheckHook }:
2+
3+buildPythonPackage rec {
4+ pname = "ionhash";
5+ version = "1.2.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "amzn";
9+ repo = "ion-hash-python";
10+ rev = "v${version}";
11+ sha256 = "sha256-mXOLKXauWwwIA/LnF4qyZsBiF/QM+rF9MmE2ewmozYo=";
12+ fetchSubmodules = true;
13+ };
14+
15+ patches = [
16+ (fetchpatch {
17+ url = "https://github.com/amzn/ion-hash-python/commit/5cab56d694ecc176e394bb455c2d726ba1514ce0.patch";
18+ sha256 = "sha256-P5QByNafgxI//e3m+b0oG00+rVymCsT/J4dOZSk3354=";
19+ })
20+ ];
21+
22+ postPatch = ''
23+ substituteInPlace setup.py --replace "'pytest-runner'," ""
24+ '';
25+
26+ propagatedBuildInputs = [ amazon-ion six ];
27+
28+ checkInputs = [ pytestCheckHook ];
29+
30+ pythonImportsCheck = [ "ionhash" ];
31+
32+ meta = with lib; {
33+ description = "Python implementation of Amazon Ion Hash";
34+ homepage = "https://github.com/amzn/ion-hash-python";
35+ license = licenses.asl20;
36+ maintainers = [ maintainers.terlar ];
37+ };
38+}
pkgs/top-level/python-packages.nix+2
@@ -4090,6 +4090,8 @@ in {
40904090
40914091 iocapture = callPackage ../development/python-modules/iocapture { };
40924092
4093+ ionhash = callPackage ../development/python-modules/ionhash { };
4094+
40934095 iotawattpy = callPackage ../development/python-modules/iotawattpy { };
40944096
40954097 iowait = callPackage ../development/python-modules/iowait { };