tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.ionhash: init at 1.2.1
Terje Larsen
3 years ago
4e2a9675
98a27657
+40
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
ionhash
default.nix
top-level
python-packages.nix
+38
pkgs/development/python-modules/ionhash/default.nix
···
1
1
+
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, amazon-ion, six, pytestCheckHook }:
2
2
+
3
3
+
buildPythonPackage rec {
4
4
+
pname = "ionhash";
5
5
+
version = "1.2.1";
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "amzn";
9
9
+
repo = "ion-hash-python";
10
10
+
rev = "v${version}";
11
11
+
sha256 = "sha256-mXOLKXauWwwIA/LnF4qyZsBiF/QM+rF9MmE2ewmozYo=";
12
12
+
fetchSubmodules = true;
13
13
+
};
14
14
+
15
15
+
patches = [
16
16
+
(fetchpatch {
17
17
+
url = "https://github.com/amzn/ion-hash-python/commit/5cab56d694ecc176e394bb455c2d726ba1514ce0.patch";
18
18
+
sha256 = "sha256-P5QByNafgxI//e3m+b0oG00+rVymCsT/J4dOZSk3354=";
19
19
+
})
20
20
+
];
21
21
+
22
22
+
postPatch = ''
23
23
+
substituteInPlace setup.py --replace "'pytest-runner'," ""
24
24
+
'';
25
25
+
26
26
+
propagatedBuildInputs = [ amazon-ion six ];
27
27
+
28
28
+
checkInputs = [ pytestCheckHook ];
29
29
+
30
30
+
pythonImportsCheck = [ "ionhash" ];
31
31
+
32
32
+
meta = with lib; {
33
33
+
description = "Python implementation of Amazon Ion Hash";
34
34
+
homepage = "https://github.com/amzn/ion-hash-python";
35
35
+
license = licenses.asl20;
36
36
+
maintainers = [ maintainers.terlar ];
37
37
+
};
38
38
+
}
+2
pkgs/top-level/python-packages.nix
···
4090
4090
4091
4091
iocapture = callPackage ../development/python-modules/iocapture { };
4092
4092
4093
4093
+
ionhash = callPackage ../development/python-modules/ionhash { };
4094
4094
+
4093
4095
iotawattpy = callPackage ../development/python-modules/iotawattpy { };
4094
4096
4095
4097
iowait = callPackage ../development/python-modules/iowait { };