pythonPackages.dpkt: 1.8 -> 1.9.1

* fetchurl -> fetchPypi
* Tests work now.
* Package is py3k compatible now.
This commit is contained in:
Bjørn Forsman 2017-10-29 14:44:50 +01:00
parent 5065f0f258
commit 4b3f729172

View File

@ -1,17 +1,15 @@
{ stdenv, fetchurl, buildPythonPackage, isPy3k }: { stdenv, fetchPypi, buildPythonPackage }:
buildPythonPackage rec { buildPythonPackage rec {
name = "dpkt-1.8"; pname = "dpkt";
disabled = isPy3k; version = "1.9.1";
name = "${pname}-${version}";
src = fetchurl { src = fetchPypi {
url = "https://dpkt.googlecode.com/files/${name}.tar.gz"; inherit pname version;
sha256 = "01q5prynymaqyfsfi2296xncicdpid2hs3yyasim8iigvkwy4vf5"; sha256 = "0rr9ygczhxkfb61778jx0cxs0sq46zwlcj5l3wn6xmd3iy3yx9y6";
}; };
# error: invalid command 'test'
doCheck = false;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols"; description = "Fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols";
homepage = https://code.google.com/p/dpkt/; homepage = https://code.google.com/p/dpkt/;