tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.hexdump: init at 3.3
Simon Bruder
3 years ago
beeffa24
7a7f1ae4
+34
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
hexdump
default.nix
top-level
python-packages.nix
+32
pkgs/development/python-modules/hexdump/default.nix
···
1
1
+
{ lib, buildPythonPackage, fetchPypi }:
2
2
+
3
3
+
buildPythonPackage rec {
4
4
+
pname = "hexdump";
5
5
+
version = "3.3";
6
6
+
7
7
+
src = fetchPypi {
8
8
+
inherit pname version;
9
9
+
sha256 = "sha256-14GkOwwWrOP5Nmqt5z6K06e9UTfVjwtFqy0/VIdvINs=";
10
10
+
extension = "zip";
11
11
+
};
12
12
+
13
13
+
# the source zip has no prefix, so everything gets unpacked to /build otherwise
14
14
+
sourceRoot = "source";
15
15
+
unpackPhase = ''
16
16
+
runHook preUnpack
17
17
+
mkdir source
18
18
+
pushd source
19
19
+
unzip $src
20
20
+
popd
21
21
+
runHook postUnpack
22
22
+
'';
23
23
+
24
24
+
pythonImportsCheck = [ "hexdump" ];
25
25
+
26
26
+
meta = with lib; {
27
27
+
description = "Library to dump binary data to hex format and restore from there";
28
28
+
homepage = "https://pypi.org/project/hexdump/"; # BitBucket site returns 404
29
29
+
license = licenses.publicDomain;
30
30
+
maintainers = with maintainers; [ frogamic sbruder ];
31
31
+
};
32
32
+
}
+2
pkgs/top-level/python-packages.nix
···
4089
4089
4090
4090
hexbytes = callPackage ../development/python-modules/hexbytes { };
4091
4091
4092
4092
+
hexdump = callPackage ../development/python-modules/hexdump { };
4093
4093
+
4092
4094
hg-commitsigs = callPackage ../development/python-modules/hg-commitsigs { };
4093
4095
4094
4096
hg-evolve = callPackage ../development/python-modules/hg-evolve { };