Skip to content

Commit 8f3f64e

Browse files
committedSep 10, 2017
python.pkgs.unicorn: disable python3
fixes #29200
1 parent accb333 commit 8f3f64e

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{ stdenv, buildPythonPackage, fetchPypi, isPy3k }:
2+
3+
buildPythonPackage rec {
4+
name = "${pname}-${version}";
5+
pname = "unicorn";
6+
version = "1.0.1";
7+
8+
src = fetchPypi {
9+
inherit pname version;
10+
sha256 = "0a5b4vh734b3wfkgapzzf8x18rimpmzvwwkly56da84n27wfw9bg";
11+
};
12+
13+
disabled = isPy3k;
14+
15+
setupPyBuildFlags = [ "--plat-name" "linux" ];
16+
17+
meta = with stdenv.lib; {
18+
description = "Unicorn CPU emulator engine";
19+
homepage = "http://www.unicorn-engine.org/";
20+
license = [ licenses.gpl2 ];
21+
maintainers = [ maintainers.bennofs ];
22+
};
23+
}

‎pkgs/top-level/python-packages.nix

+1-15
Original file line numberDiff line numberDiff line change
@@ -27232,21 +27232,7 @@ EOF
2723227232
# We need "normal" libxml2 and not the python package by the same name.
2723327233
pywbem = callPackage ../development/python-modules/pywbem { libxml2 = pkgs.libxml2; };
2723427234

27235-
unicorn = buildPythonPackage rec {
27236-
name = "unicorn-${version}";
27237-
version = "1.0.1";
27238-
src = pkgs.fetchurl {
27239-
url = "mirror://pypi/u/unicorn/${name}.tar.gz";
27240-
sha256 = "0a5b4vh734b3wfkgapzzf8x18rimpmzvwwkly56da84n27wfw9bg";
27241-
};
27242-
setupPyBuildFlags = [ "--plat-name" "linux" ];
27243-
meta = with pkgs.stdenv.lib; {
27244-
description = "Unicorn CPU emulator engine";
27245-
homepage = "http://www.unicorn-engine.org/";
27246-
license = [ licenses.gpl2 ];
27247-
maintainers = [ maintainers.bennofs ];
27248-
};
27249-
};
27235+
unicorn = callPackage ../development/python-modules/unicorn { };
2725027236

2725127237
intervaltree = callPackage ../development/python-modules/intervaltree { };
2725227238

0 commit comments

Comments
 (0)