commit
84277e82a5
@ -0,0 +1,41 @@ |
|||||||
|
{ lib |
||||||
|
, buildPythonPackage |
||||||
|
, fetchFromGitHub |
||||||
|
, python-dateutil |
||||||
|
, python-mimeparse |
||||||
|
, pythonOlder |
||||||
|
}: |
||||||
|
|
||||||
|
buildPythonPackage rec { |
||||||
|
pname = "django-tastypie"; |
||||||
|
version = "0.14.4"; |
||||||
|
format = "setuptools"; |
||||||
|
|
||||||
|
disabled = pythonOlder "3.7"; |
||||||
|
|
||||||
|
src = fetchFromGitHub { |
||||||
|
owner = "django-tastypie"; |
||||||
|
repo = pname; |
||||||
|
rev = "v${version}"; |
||||||
|
hash = "sha256-O/aVi8BshOZmg9WQxrFlBEOXfgyqJKVK/QlEFG3Edqs="; |
||||||
|
}; |
||||||
|
|
||||||
|
propagatedBuildInputs = [ |
||||||
|
python-dateutil |
||||||
|
python-mimeparse |
||||||
|
]; |
||||||
|
|
||||||
|
# Tests requires a Django instance |
||||||
|
doCheck = false; |
||||||
|
|
||||||
|
pythonImportsCheck = [ |
||||||
|
"tastypie" |
||||||
|
]; |
||||||
|
|
||||||
|
meta = with lib; { |
||||||
|
description = "Utilities and helpers for writing Pylint plugins"; |
||||||
|
homepage = "https://github.com/django-tastypie/django-tastypie"; |
||||||
|
license = licenses.gpl2Only; |
||||||
|
maintainers = with maintainers; [ fab ]; |
||||||
|
}; |
||||||
|
} |
@ -1,39 +1,46 @@ |
|||||||
{ buildPythonPackage |
{ lib |
||||||
|
, buildPythonPackage |
||||||
, fetchFromGitHub |
, fetchFromGitHub |
||||||
, isPy3k |
|
||||||
, lib |
|
||||||
|
|
||||||
# pythonPackages |
|
||||||
, pylint |
, pylint |
||||||
|
, pytestCheckHook |
||||||
|
, pythonOlder |
||||||
, toml |
, toml |
||||||
}: |
}: |
||||||
|
|
||||||
buildPythonPackage rec { |
buildPythonPackage rec { |
||||||
pname = "pylint-plugin-utils"; |
pname = "pylint-plugin-utils"; |
||||||
version = "0.6"; |
version = "0.7"; |
||||||
disabled = !isPy3k; |
format = "setuptools"; |
||||||
|
|
||||||
|
disabled = pythonOlder "3.7"; |
||||||
|
|
||||||
src = fetchFromGitHub { |
src = fetchFromGitHub { |
||||||
owner = "PyCQA"; |
owner = "PyCQA"; |
||||||
repo = pname; |
repo = pname; |
||||||
rev = version; |
rev = version; |
||||||
sha256 = "1zapmbczxs1phrwbd0yvpfxhljd2pyv4pi9rwggaq38lcnc325s7"; |
hash = "sha256-uDsSSUWdlzuQz6umoYLbIotOYNEnLQu041ZZVMRd2ww="; |
||||||
}; |
}; |
||||||
|
|
||||||
propagatedBuildInputs = [ |
propagatedBuildInputs = [ |
||||||
pylint toml |
pylint |
||||||
|
toml |
||||||
|
]; |
||||||
|
|
||||||
|
checkInputs = [ |
||||||
|
pytestCheckHook |
||||||
|
]; |
||||||
|
|
||||||
|
pythonImportsCheck = [ |
||||||
|
"pylint_plugin_utils" |
||||||
]; |
]; |
||||||
|
|
||||||
checkPhase = '' |
# https://github.com/PyCQA/pylint-plugin-utils/issues/26 |
||||||
python tests.py |
doCheck = false; |
||||||
''; |
|
||||||
|
|
||||||
meta = with lib; { |
meta = with lib; { |
||||||
description = "Utilities and helpers for writing Pylint plugins"; |
description = "Utilities and helpers for writing Pylint plugins"; |
||||||
homepage = "https://github.com/PyCQA/pylint-plugin-utils"; |
homepage = "https://github.com/PyCQA/pylint-plugin-utils"; |
||||||
license = licenses.gpl2; |
license = licenses.gpl2Only; |
||||||
maintainers = with maintainers; [ |
maintainers = with maintainers; [ kamadorueda ]; |
||||||
kamadorueda |
|
||||||
]; |
|
||||||
}; |
}; |
||||||
} |
} |
||||||
|
@ -0,0 +1,31 @@ |
|||||||
|
{ lib |
||||||
|
, buildPythonPackage |
||||||
|
, fetchFromGitHub |
||||||
|
, numpy |
||||||
|
, pytestCheckHook |
||||||
|
}: |
||||||
|
|
||||||
|
buildPythonPackage rec { |
||||||
|
pname = "sdds"; |
||||||
|
version = "0.2.1"; |
||||||
|
format = "setuptools"; |
||||||
|
|
||||||
|
src = fetchFromGitHub { |
||||||
|
owner = "pylhc"; |
||||||
|
repo = pname; |
||||||
|
rev = "v${version}"; |
||||||
|
sha256 = "sha256-JcxcF0tDigZz3upzE7rPDynCH45dnLk/zpS0a2dOwRU="; |
||||||
|
}; |
||||||
|
|
||||||
|
propagatedBuildInputs = [ numpy ]; |
||||||
|
|
||||||
|
pythonImportsCheck = [ "sdds" ]; |
||||||
|
checkInputs = [ pytestCheckHook ]; |
||||||
|
|
||||||
|
meta = with lib; { |
||||||
|
description = "Python 3 package to handle SDDS files"; |
||||||
|
homepage = "https://pylhc.github.io/sdds/"; |
||||||
|
license = with licenses; [ mit ]; |
||||||
|
maintainers = with maintainers; [ veprbl ]; |
||||||
|
}; |
||||||
|
} |
@ -0,0 +1,31 @@ |
|||||||
|
{ lib, stdenv, fetchurl, gsl |
||||||
|
, dieharder, testers }: |
||||||
|
|
||||||
|
stdenv.mkDerivation rec { |
||||||
|
pname = "dieharder"; |
||||||
|
version = "3.31.1"; |
||||||
|
|
||||||
|
src = fetchurl { |
||||||
|
url = "http://webhome.phy.duke.edu/~rgb/General/dieharder/dieharder-${version}.tgz"; |
||||||
|
hash = "sha256-bP8P+DlMVTVJrHQzNZzPyVX7JnlCYDFGIN+l5M1Lcn8="; |
||||||
|
}; |
||||||
|
|
||||||
|
patches = [ |
||||||
|
# Include missing stdint.h header |
||||||
|
./stdint.patch |
||||||
|
]; |
||||||
|
|
||||||
|
buildInputs = [ gsl ]; |
||||||
|
|
||||||
|
passthru = { |
||||||
|
tests.version = testers.testVersion { package = dieharder; }; |
||||||
|
}; |
||||||
|
|
||||||
|
meta = with lib; { |
||||||
|
description = "A Random Number Generator test suite"; |
||||||
|
homepage = "https://webhome.phy.duke.edu/~rgb/General/dieharder.php"; |
||||||
|
license = licenses.gpl2Plus; |
||||||
|
maintainers = with maintainers; [ zhaofengli ]; |
||||||
|
platforms = platforms.unix; |
||||||
|
}; |
||||||
|
} |
@ -0,0 +1,10 @@ |
|||||||
|
--- a/include/dieharder/libdieharder.h 2011-10-14 15:41:37.000000000 +0200
|
||||||
|
+++ b/include/dieharder/libdieharder.h 2015-03-27 16:34:40.978860858 +0100
|
||||||
|
@@ -13,6 +13,7 @@
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <string.h>
|
||||||
|
+#include <stdint.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
/* This turns on uint macro in c99 */
|
@ -0,0 +1,54 @@ |
|||||||
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config, fetchpatch |
||||||
|
, ncurses, libpcap, libnet |
||||||
|
# alpha version of GTK interface |
||||||
|
, withGtk ? false, gtk2 |
||||||
|
# enable remote admin interface |
||||||
|
, enableAdmin ? false |
||||||
|
}: |
||||||
|
|
||||||
|
stdenv.mkDerivation rec { |
||||||
|
pname = "yersinia"; |
||||||
|
version = "0.8.2"; |
||||||
|
|
||||||
|
src = fetchFromGitHub { |
||||||
|
owner = "tomac"; |
||||||
|
repo = pname; |
||||||
|
rev = "v${version}"; |
||||||
|
sha256 = "06yfpf9iyi525rly1ychsihzvw3sas8kp0nxxr99xkwiqp5dc78b"; |
||||||
|
}; |
||||||
|
|
||||||
|
patches = [ |
||||||
|
# ncurses-6.3 support, included in next release |
||||||
|
(fetchpatch { |
||||||
|
name = "ncurses-6.3.patch"; |
||||||
|
url = "https://github.com/tomac/yersinia/commit/d91bbf6f475e7ea39f131b77ce91b2de9646d5ca.patch"; |
||||||
|
sha256 = "fl1pZKWA+nLtBm9+3FBFqaeuVZjszQCNkNl6Cf++BAI="; |
||||||
|
}) |
||||||
|
]; |
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook pkg-config ]; |
||||||
|
buildInputs = [ libpcap libnet ncurses ] |
||||||
|
++ lib.optional withGtk gtk2; |
||||||
|
|
||||||
|
autoreconfPhase = "./autogen.sh"; |
||||||
|
|
||||||
|
configureFlags = [ |
||||||
|
"--with-pcap-includes=${libpcap}/include" |
||||||
|
"--with-libnet-includes=${libnet}/include" |
||||||
|
] |
||||||
|
++ lib.optional (!enableAdmin) "--disable-admin" |
||||||
|
++ lib.optional (!withGtk) "--disable-gtk"; |
||||||
|
|
||||||
|
makeFlags = [ "LDFLAGS=-lncurses" ]; |
||||||
|
|
||||||
|
meta = with lib; { |
||||||
|
description = "A framework for layer 2 attacks"; |
||||||
|
homepage = "https://github.com/tomac/yersinia"; |
||||||
|
license = licenses.gpl2Plus; |
||||||
|
maintainers = with maintainers; [ vdot0x23 ]; |
||||||
|
# INSTALL and FAQ in this package seem a little outdated |
||||||
|
# so not sure, but it could work on openbsd, illumos, and freebsd |
||||||
|
# if you have a machine to test with, feel free to add these |
||||||
|
platforms = with platforms; linux; |
||||||
|
}; |
||||||
|
} |
Loading…
Reference in new issue