mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
20 lines
533 B
Nix
20 lines
533 B
Nix
{ stdenv, fetchPypi, buildPythonPackage }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dpkt";
|
|
version = "1.9.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0rr9ygczhxkfb61778jx0cxs0sq46zwlcj5l3wn6xmd3iy3yx9y6";
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols";
|
|
homepage = https://code.google.com/p/dpkt/;
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|