Merge master into staging-next
This commit is contained in:
commit
5c2a7abde7
@ -1188,7 +1188,8 @@ community to help save time. No tool is preferred at the moment.
|
|||||||
expressions for your Python project. Note that [sharing derivations from
|
expressions for your Python project. Note that [sharing derivations from
|
||||||
pypi2nix with nixpkgs is possible but not
|
pypi2nix with nixpkgs is possible but not
|
||||||
encouraged](https://github.com/nix-community/pypi2nix/issues/222#issuecomment-443497376).
|
encouraged](https://github.com/nix-community/pypi2nix/issues/222#issuecomment-443497376).
|
||||||
- [python2nix](https://github.com/proger/python2nix) by Vladimir Kirillov.
|
- [nixpkgs-pytools](https://github.com/nix-community/nixpkgs-pytools)
|
||||||
|
- [poetry2nix](https://github.com/nix-community/poetry2nix)
|
||||||
|
|
||||||
### Deterministic builds
|
### Deterministic builds
|
||||||
|
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
pname = "ledger-live-desktop";
|
pname = "ledger-live-desktop";
|
||||||
version = "2.21.3";
|
version = "2.23.0";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/LedgerHQ/${pname}/releases/download/v${version}/${pname}-${version}-linux-x86_64.AppImage";
|
url = "https://github.com/LedgerHQ/${pname}/releases/download/v${version}/${pname}-${version}-linux-x86_64.AppImage";
|
||||||
sha256 = "11r6gwzg5qym7h40d8mrpw8c6zbdi534c2y7ghy2k0a4k3ybk8x1";
|
sha256 = "0id9zbpfq3knv8qwkhplbl9pwrvdkn212pafwh4vpjbbp4yimhq5";
|
||||||
};
|
};
|
||||||
|
|
||||||
appimageContents = appimageTools.extractType2 {
|
appimageContents = appimageTools.extractType2 {
|
||||||
|
65
pkgs/applications/misc/osmscout-server/default.nix
Normal file
65
pkgs/applications/misc/osmscout-server/default.nix
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
{ lib, mkDerivation, fetchFromGitHub, fetchpatch, pkg-config
|
||||||
|
, qmake, qttools, kirigami2, qtquickcontrols2, qtlocation
|
||||||
|
, libosmscout, mapnik, valhalla, libpostal, osrm-backend, protobuf
|
||||||
|
, libmicrohttpd_0_9_70, sqlite, marisa, kyotocabinet, boost
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
date = fetchFromGitHub {
|
||||||
|
owner = "HowardHinnant";
|
||||||
|
repo = "date";
|
||||||
|
rev = "a2fdba1adcb076bf9a8343c07524afdf09aa8dcc";
|
||||||
|
sha256 = "00sf1pbaz0g0gsa0dlm23lxk4h46xm1jv1gzbjj5rr9sf1qccyr5";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
mkDerivation rec {
|
||||||
|
pname = "osmscout-server";
|
||||||
|
version = "1.17.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "rinigus";
|
||||||
|
repo = "osmscout-server";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0rpsi6nyhcz6bv0jab4vixkxhjmn84xi0q2xz15a097hn46cklx9";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Two patches required to work with valhalla 3.1
|
||||||
|
patches = [
|
||||||
|
# require C++14 to match latest Valhalla
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/rinigus/osmscout-server/commit/78b41b9b4c607fe9bfd6fbd61ae31cb7c8a725cd.patch";
|
||||||
|
sha256 = "0gk9mdwa75awl0bj30gm8waj454d8k2yixxwh05m0p550cbv3lg0";
|
||||||
|
})
|
||||||
|
# add Valhalla 3.1 config
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/rinigus/osmscout-server/commit/584de8bd47700053960fa139a2d7f8d3d184c876.patch";
|
||||||
|
sha256 = "0liz72n83q93bzzyyiqjkxa6hp9zjx7v9rgsmpwf88gc4caqm2dz";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ qmake pkg-config qttools ];
|
||||||
|
buildInputs = [
|
||||||
|
kirigami2 qtquickcontrols2 qtlocation
|
||||||
|
mapnik valhalla libosmscout osrm-backend libmicrohttpd_0_9_70
|
||||||
|
libpostal sqlite marisa kyotocabinet boost protobuf date
|
||||||
|
];
|
||||||
|
|
||||||
|
# OSMScout server currently defaults to an earlier version of valhalla,
|
||||||
|
# but valhalla 3.1 support has been added. (See patches above)
|
||||||
|
# Replace the default valhalla.json with the valhalla 3.1 version
|
||||||
|
postPatch = ''
|
||||||
|
mv data/valhalla.json-3.1 data/valhalla.json
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Choose to build the kirigami UI variant
|
||||||
|
qmakeFlags = [ "SCOUT_FLAVOR=kirigami" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Maps server providing tiles, geocoder, and router";
|
||||||
|
homepage = "https://github.com/rinigus/osmscout-server";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = [ maintainers.Thra11 ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -1,12 +1,12 @@
|
|||||||
{ lib, stdenv, fetchurl, cmake, gcc, gcc-unwrapped }:
|
{ lib, stdenv, fetchurl, cmake, gcc, gcc-unwrapped }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "3.2.1";
|
version = "3.6";
|
||||||
pname = "messer-slim";
|
pname = "messer-slim";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/MesserLab/SLiM/archive/v${version}.tar.gz";
|
url = "https://github.com/MesserLab/SLiM/archive/v${version}.tar.gz";
|
||||||
sha256 = "1j3ssjvxpsc21mmzj59kwimglz8pdazi5w6wplmx11x744k77wa1";
|
sha256 = "sha256-djWUKB+NW2a/6oaAMcH0Ul/R/XPHvGDbwlfeFmkbMOY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake gcc gcc-unwrapped ];
|
nativeBuildInputs = [ cmake gcc gcc-unwrapped ];
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
{ lib, fetchzip }:
|
{ lib, fetchzip }:
|
||||||
let
|
let
|
||||||
version = "2.2.1";
|
version = "2.3.0";
|
||||||
in
|
in
|
||||||
fetchzip {
|
fetchzip {
|
||||||
name = "3270font-${version}";
|
name = "3270font-${version}";
|
||||||
|
|
||||||
url = "https://github.com/rbanffy/3270font/releases/download/v${version}/3270_fonts_70de9c7.zip";
|
url = "https://github.com/rbanffy/3270font/releases/download/v${version}/3270_fonts_fd00815.zip";
|
||||||
|
|
||||||
sha256 = "0spz9abp87r3bncjim6hs47fmhg86qbgips4x6nfpqzg5qh2xd2m";
|
sha256 = "0ny2jcsfa1kfzkm979dfzqv756ijm5xirm02ln7a4kwhxxsm5xr1";
|
||||||
|
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
mkdir -p $out/share/fonts/
|
mkdir -p $out/share/fonts/
|
||||||
|
24
pkgs/development/libraries/libosmscout/default.nix
Normal file
24
pkgs/development/libraries/libosmscout/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ lib, mkDerivation, fetchgit, cmake, pkg-config
|
||||||
|
, marisa, qtlocation }:
|
||||||
|
|
||||||
|
mkDerivation rec {
|
||||||
|
pname = "libosmscout";
|
||||||
|
version = "2017.06.30";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = "git://git.code.sf.net/p/libosmscout/code";
|
||||||
|
rev = "0c0fde4d9803539c99911389bc918377a93f350c";
|
||||||
|
sha256 = "1pa459h52kw88mvsdvkz83f4p35vvgsfy2qfjwcj61gj4y9d2rq4";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
buildInputs = [ marisa qtlocation ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Simple, high-level interfaces for offline location and POI lokup, rendering and routing functionalities based on OpenStreetMap (OSM) data";
|
||||||
|
homepage = "http://libosmscout.sourceforge.net/";
|
||||||
|
license = licenses.lgpl3Plus;
|
||||||
|
maintainers = [ maintainers.Thra11 ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
27
pkgs/development/libraries/libpostal/default.nix
Normal file
27
pkgs/development/libraries/libpostal/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "libpostal";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "openvenues";
|
||||||
|
repo = "libpostal";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0qf5nkfkfjl2ylkrnw7kzax71y85gkr8i24glyp9rflyzmpj6giy";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--disable-data-download"
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isAarch64 [ "--disable-sse2" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A C library for parsing/normalizing street addresses around the world. Powered by statistical NLP and open geo data";
|
||||||
|
homepage = "https://github.com/openvenues/libpostal";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.Thra11 ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
26
pkgs/development/libraries/prime-server/default.nix
Normal file
26
pkgs/development/libraries/prime-server/default.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
||||||
|
, curl, zeromq, czmq, libsodium }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "prime-server";
|
||||||
|
version = "0.6.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "kevinkreiser";
|
||||||
|
repo = "prime_server";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "027w3cqfnciyy2x78hfclpb77askn773fab37mzwf6r3mcc7vyl5";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
buildInputs = [ curl zeromq czmq libsodium ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Non-blocking (web)server API for distributed computing and SOA based on zeromq";
|
||||||
|
homepage = "https://github.com/kevinkreiser/prime_server";
|
||||||
|
license = licenses.bsd2;
|
||||||
|
maintainers = [ maintainers.Thra11 ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
35
pkgs/development/libraries/valhalla/default.nix
Normal file
35
pkgs/development/libraries/valhalla/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
||||||
|
, zlib, curl, protobuf, prime-server, boost, sqlite, libspatialite
|
||||||
|
, luajit, geos, python3, zeromq }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "valhalla";
|
||||||
|
version = "3.1.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "valhalla";
|
||||||
|
repo = "valhalla";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "04vxvzy6hnhdvb9lh1p5vqzzi2drv0g4l2gnbdp44glipbzgd4dr";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
buildInputs = [
|
||||||
|
zlib curl protobuf prime-server boost sqlite libspatialite
|
||||||
|
luajit geos python3 zeromq
|
||||||
|
];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DENABLE_TESTS=OFF"
|
||||||
|
"-DENABLE_BENCHMARKS=OFF"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Open Source Routing Engine for OpenStreetMap";
|
||||||
|
homepage = "https://valhalla.readthedocs.io/";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.Thra11 ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -1,4 +1,12 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, flake8, six, orderedmultidict, pytest }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
|
, flake8
|
||||||
|
, orderedmultidict
|
||||||
|
, pytestCheckHook
|
||||||
|
, six
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "furl";
|
pname = "furl";
|
||||||
@ -9,17 +17,33 @@ buildPythonPackage rec {
|
|||||||
sha256 = "08dnw3bs1mk0f1ccn466a5a7fi1ivwrp0jspav9arqpf3wd27q60";
|
sha256 = "08dnw3bs1mk0f1ccn466a5a7fi1ivwrp0jspav9arqpf3wd27q60";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ flake8 pytest ];
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "tests_overcome_bpo42967.patch";
|
||||||
|
url = "https://github.com/gruns/furl/files/6030371/tests_overcome_bpo42967.patch.txt";
|
||||||
|
sha256 = "1l0lxmcp9x73kxy0ky2bh7zxa4n1cf1qxyyax97n90d1s3dc7k2q";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ six orderedmultidict ];
|
propagatedBuildInputs = [
|
||||||
|
orderedmultidict
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
# see https://github.com/gruns/furl/issues/121
|
checkInputs = [
|
||||||
checkPhase = ''
|
flake8
|
||||||
pytest -k 'not join'
|
pytestCheckHook
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# see https://github.com/gruns/furl/issues/121
|
||||||
|
"join"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "furl" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "furl is a small Python library that makes parsing and manipulating URLs easy";
|
description = "Python library that makes parsing and manipulating URLs easy";
|
||||||
homepage = "https://github.com/gruns/furl";
|
homepage = "https://github.com/gruns/furl";
|
||||||
license = licenses.unlicense;
|
license = licenses.unlicense;
|
||||||
maintainers = with maintainers; [ vanzef ];
|
maintainers = with maintainers; [ vanzef ];
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
{ buildPythonPackage, lib, fetchPypi, isPy27
|
{ buildPythonPackage, lib, fetchPypi, pythonOlder
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, maxminddb
|
, maxminddb
|
||||||
, mocket
|
, mocket
|
||||||
, requests
|
, requests
|
||||||
, requests-mock
|
, requests-mock
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "4.1.0";
|
version = "4.1.0";
|
||||||
pname = "geoip2";
|
pname = "geoip2";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -22,11 +23,17 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ aiohttp requests maxminddb ];
|
propagatedBuildInputs = [ aiohttp requests maxminddb ];
|
||||||
|
|
||||||
checkInputs = [ mocket requests-mock ];
|
checkInputs = [
|
||||||
|
mocket
|
||||||
|
requests-mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "geoip2" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "MaxMind GeoIP2 API";
|
description = "Python client for GeoIP2 webservice client and database reader";
|
||||||
homepage = "https://www.maxmind.com/en/home";
|
homepage = "https://github.com/maxmind/GeoIP2-python";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy27
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pythonOlder
|
||||||
|
, isPy3k
|
||||||
, decorator
|
, decorator
|
||||||
, http-parser
|
, http-parser
|
||||||
, importlib-metadata
|
|
||||||
, python
|
|
||||||
, python_magic
|
, python_magic
|
||||||
, six
|
|
||||||
, urllib3
|
, urllib3
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
@ -13,15 +14,17 @@
|
|||||||
, redis
|
, redis
|
||||||
, requests
|
, requests
|
||||||
, sure
|
, sure
|
||||||
|
, pook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mocket";
|
pname = "mocket";
|
||||||
version = "3.9.40";
|
version = "3.9.40";
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "dbe4349a0ed30ed0c5d04684dd5d98517f8d1e4585fe0da4832747e2f01f3c18";
|
sha256 = "061w3zqf4ir7hfj0vzl58lg8szsik1fxv126s32x03nk1sd39r6v";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -29,8 +32,7 @@ buildPythonPackage rec {
|
|||||||
http-parser
|
http-parser
|
||||||
python_magic
|
python_magic
|
||||||
urllib3
|
urllib3
|
||||||
six
|
];
|
||||||
] ++ lib.optionals (isPy27) [ six ];
|
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
@ -40,13 +42,14 @@ buildPythonPackage rec {
|
|||||||
redis
|
redis
|
||||||
requests
|
requests
|
||||||
sure
|
sure
|
||||||
|
pook
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--ignore=tests/main/test_pook.py" # pook is not packaged
|
# Requires a live Redis instance
|
||||||
"--ignore=tests/main/test_redis.py" # requires a live redis instance
|
"--ignore=tests/main/test_redis.py"
|
||||||
] ++ lib.optionals (pythonOlder "3.8") [
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
# uses IsolatedAsyncioTestCase which is only available >= 3.8
|
# Uses IsolatedAsyncioTestCase which is only available >= 3.8
|
||||||
"--ignore=tests/tests38/test_http_aiohttp.py"
|
"--ignore=tests/tests38/test_http_aiohttp.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -61,6 +64,7 @@ buildPythonPackage rec {
|
|||||||
"test_truesendall_with_recording_https"
|
"test_truesendall_with_recording_https"
|
||||||
"test_truesendall_after_mocket_session"
|
"test_truesendall_after_mocket_session"
|
||||||
"test_real_request_session"
|
"test_real_request_session"
|
||||||
|
"test_asyncio_record_replay"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "mocket" ];
|
pythonImportsCheck = [ "mocket" ];
|
||||||
|
57
pkgs/development/python-modules/pook/default.nix
Normal file
57
pkgs/development/python-modules/pook/default.nix
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
{ lib
|
||||||
|
, aiohttp
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, furl
|
||||||
|
, jsonschema
|
||||||
|
, nose
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
, xmltodict
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pook";
|
||||||
|
version = "1.0.1";
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "h2non";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0z48vswj07kr2sdvq5qzrwqyijpmj2rlnh2z2b32id1mckr6nnz8";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
# Will be fixed with the new release, https://github.com/h2non/pook/issues/69
|
||||||
|
name = "use-match-keyword-in-pytest.patch";
|
||||||
|
url = "https://github.com/h2non/pook/commit/2071da27701c82ce02b015e01e2aa6fd203e7bb5.patch";
|
||||||
|
sha256 = "0i3qcpbdqqsnbygi46dyqamgkh9v8rhpbm4lkl75riw48j4n080k";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
furl
|
||||||
|
jsonschema
|
||||||
|
requests
|
||||||
|
xmltodict
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
nose
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pook" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "HTTP traffic mocking and testing made simple in Python";
|
||||||
|
homepage = "https://github.com/h2non/pook";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -10,13 +10,13 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pypykatz";
|
pname = "pypykatz";
|
||||||
version = "0.4.2";
|
version = "0.4.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "skelsec";
|
owner = "skelsec";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-dTpkwBYEAITdyKsRTfeJk40hgO8+wmxD3d2XXkvWUpc=";
|
sha256 = "sha256-ows6zJyygdAwgKNKKCURWX+kl42f3CN23/xZrLjkfrw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sagemaker";
|
pname = "sagemaker";
|
||||||
version = "2.28.0";
|
version = "2.29.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-SOk4VM227gAlLX615xPy0lcATRzth7M3HGH557iF2Wc=";
|
sha256 = "sha256-xhm9KJiJdg8LD8Q33A61V6zXz1K9S4cROxy9iCxjK7M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
@ -51,6 +51,8 @@ buildPythonPackage rec {
|
|||||||
popd
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "sopel" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Simple and extensible IRC bot";
|
description = "Simple and extensible IRC bot";
|
||||||
homepage = "http://sopel.chat";
|
homepage = "http://sopel.chat";
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "sbt-extras";
|
pname = "sbt-extras";
|
||||||
rev = "2c582cdbb37dd487bf2140010ddd2e20f3c1394e";
|
rev = "6db3d3d1c38082dd4c49cce9933738d9bff50065";
|
||||||
version = "2021-03-03";
|
version = "2021-03-08";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "paulp";
|
owner = "paulp";
|
||||||
repo = "sbt-extras";
|
repo = "sbt-extras";
|
||||||
inherit rev;
|
inherit rev;
|
||||||
sha256 = "1j4j46gzw05bis7akvzfdj36xdwxcabq66wyf917z8vsy31vvajp";
|
sha256 = "0sd9a6ldcl3pgs2rjg4pydk72ciavhggbpwfar3bj1h7vsgafnng";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "sbt";
|
pname = "sbt";
|
||||||
version = "1.4.7";
|
version = "1.4.8";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url =
|
url =
|
||||||
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz";
|
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz";
|
||||||
sha256 = "sha256-wqdZ/kCjwhoWtaiNAM1m869vByHk6mG2OULfuDotVP0=";
|
sha256 = "sha256-WXItvaPW0dfsfcPiHWGi6AAjAwpCQ4I+7q3XftnFo50=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -435,6 +435,8 @@ let
|
|||||||
SECURITY_APPARMOR = yes;
|
SECURITY_APPARMOR = yes;
|
||||||
DEFAULT_SECURITY_APPARMOR = yes;
|
DEFAULT_SECURITY_APPARMOR = yes;
|
||||||
|
|
||||||
|
RANDOM_TRUST_CPU = whenAtLeast "4.19" yes; # allow RDRAND to seed the RNG
|
||||||
|
|
||||||
MODULE_SIG = no; # r13y, generates a random key during build and bakes it in
|
MODULE_SIG = no; # r13y, generates a random key during build and bakes it in
|
||||||
# Depends on MODULE_SIG and only really helps when you sign your modules
|
# Depends on MODULE_SIG and only really helps when you sign your modules
|
||||||
# and enforce signatures which we don't do by default.
|
# and enforce signatures which we don't do by default.
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "dovecot";
|
pname = "dovecot";
|
||||||
version = "2.3.13";
|
version = "2.3.14";
|
||||||
|
|
||||||
nativeBuildInputs = [ perl pkg-config ];
|
nativeBuildInputs = [ perl pkg-config ];
|
||||||
buildInputs =
|
buildInputs =
|
||||||
@ -21,8 +21,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ lib.optional withSQLite sqlite;
|
++ lib.optional withSQLite sqlite;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://dovecot.org/releases/2.3/${pname}-${version}.tar.gz";
|
url = "https://dovecot.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.gz";
|
||||||
sha256 = "1i7ijss79a23v7b6lycfzaa8r5rh01k0h0b9h0j4a6n11sw7by53";
|
sha256 = "0jm3p52z619v7ajh533g2g7d790k82fk0w7ry0zqlm8ymzrxgcy8";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
|
|||||||
meta = {
|
meta = {
|
||||||
homepage = "https://dovecot.org/";
|
homepage = "https://dovecot.org/";
|
||||||
description = "Open source IMAP and POP3 email server written with security primarily in mind";
|
description = "Open source IMAP and POP3 email server written with security primarily in mind";
|
||||||
maintainers = with lib.maintainers; [ peti fpletz globin ];
|
maintainers = with lib.maintainers; [ peti fpletz globin ajs124 ];
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{ lib, stdenv, fetchurl, dovecot, openssl }:
|
{ lib, stdenv, fetchurl, dovecot, openssl }:
|
||||||
|
let
|
||||||
stdenv.mkDerivation rec {
|
dovecotMajorMinor = lib.versions.majorMinor dovecot.version;
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
pname = "dovecot-pigeonhole";
|
pname = "dovecot-pigeonhole";
|
||||||
version = "0.5.13";
|
version = "0.5.14";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://pigeonhole.dovecot.org/releases/2.3/dovecot-2.3-pigeonhole-${version}.tar.gz";
|
url = "https://pigeonhole.dovecot.org/releases/${dovecotMajorMinor}/dovecot-${dovecotMajorMinor}-pigeonhole-${version}.tar.gz";
|
||||||
sha256 = "05xz2d82ck6lmv94nbc3qff09j8b60a5640i3fmqwqsvv9kfa7wi";
|
sha256 = "1lmjzz4kd90wbdslacybizd1dks4bhwmrx39lj8b19naldw0zjk8";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ dovecot openssl ];
|
buildInputs = [ dovecot openssl ];
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, trezor-udev-rules
|
, trezor-udev-rules
|
||||||
|
, AppKit
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
@ -17,7 +19,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorSha256 = "0wb959xzyvr5zzjvkfqc422frmf97q5nr460f02wwx0pj6ch0y61";
|
vendorSha256 = "0wb959xzyvr5zzjvkfqc422frmf97q5nr460f02wwx0pj6ch0y61";
|
||||||
|
|
||||||
propagatedBuildInputs = [ trezor-udev-rules ];
|
propagatedBuildInputs = lib.optionals stdenv.isLinux [ trezor-udev-rules ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ AppKit ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Trezor Communication Daemon aka Trezor Bridge";
|
description = "Trezor Communication Daemon aka Trezor Bridge";
|
||||||
|
30
pkgs/tools/compression/hacpack/default.nix
Normal file
30
pkgs/tools/compression/hacpack/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ lib, stdenv, fetchFromGitHub }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "hacpack";
|
||||||
|
version = "1.36";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "The-4n";
|
||||||
|
repo = "hacpack";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0d846l36w1n9rxv79fbyhl2zdbqhlgrvk21b9vzr9x77yki89ygs";
|
||||||
|
};
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
mv config.mk.template config.mk
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp ./hacpack $out/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/The-4n/hacPack";
|
||||||
|
description = "Make and repack Nintendo Switch NCAs/NSPs";
|
||||||
|
license = licenses.gpl2Only;
|
||||||
|
maintainers = [ maintainers.ivar ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -1,19 +0,0 @@
|
|||||||
{ lib, fetchFromGitHub, pythonPackages }:
|
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication {
|
|
||||||
name = "python2nix-20140927";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "proger";
|
|
||||||
repo = "python2nix";
|
|
||||||
rev = "84e3a5bbe82e5d9d694d6db8dabf73def4ac917b";
|
|
||||||
sha256 = "022gr0gw6azfi3iq4ggb3fhkw2jljs6n5rncn45hb5liwakigj8i";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [ requests pip setuptools ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
maintainers = [ ];
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
@ -554,6 +554,7 @@ mapAliases ({
|
|||||||
phonon-backend-vlc = throw "phonon-backend-vlc: Please use libsForQt5.phonon-backend-vlc, as Qt4 support in this package has been removed."; # added 2019-11-22
|
phonon-backend-vlc = throw "phonon-backend-vlc: Please use libsForQt5.phonon-backend-vlc, as Qt4 support in this package has been removed."; # added 2019-11-22
|
||||||
phonon = throw "phonon: Please use libsForQt5.phonon, as Qt4 support in this package has been removed."; # added 2019-11-22
|
phonon = throw "phonon: Please use libsForQt5.phonon, as Qt4 support in this package has been removed."; # added 2019-11-22
|
||||||
pynagsystemd = throw "pynagsystemd was removed as it was unmaintained and incompatible with recent systemd versions. Instead use its fork check_systemd."; # added 2020-10-24
|
pynagsystemd = throw "pynagsystemd was removed as it was unmaintained and incompatible with recent systemd versions. Instead use its fork check_systemd."; # added 2020-10-24
|
||||||
|
python2nix = throw "python2nix has been removed as it is outdated. Use e.g. nixpkgs-pytools instead."; # added 2021-03-08
|
||||||
qca-qt5 = libsForQt5.qca-qt5; # added 2015-12-19
|
qca-qt5 = libsForQt5.qca-qt5; # added 2015-12-19
|
||||||
qcsxcad = libsForQt5.qcsxcad; # added 2020-11-05
|
qcsxcad = libsForQt5.qcsxcad; # added 2020-11-05
|
||||||
qr-filetransfer = throw ''"qr-filetransfer" has been renamed to "qrcp"''; # added 2020-12-02
|
qr-filetransfer = throw ''"qr-filetransfer" has been renamed to "qrcp"''; # added 2020-12-02
|
||||||
|
@ -8565,7 +8565,9 @@ in
|
|||||||
|
|
||||||
trezorctl = with python3Packages; toPythonApplication trezor;
|
trezorctl = with python3Packages; toPythonApplication trezor;
|
||||||
|
|
||||||
trezord = callPackage ../servers/trezord { };
|
trezord = callPackage ../servers/trezord {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) AppKit;
|
||||||
|
};
|
||||||
|
|
||||||
trezor_agent = with python3Packages; toPythonApplication trezor_agent;
|
trezor_agent = with python3Packages; toPythonApplication trezor_agent;
|
||||||
|
|
||||||
@ -11581,8 +11583,6 @@ in
|
|||||||
# Should eventually be moved inside Python interpreters.
|
# Should eventually be moved inside Python interpreters.
|
||||||
python-setup-hook = callPackage ../development/interpreters/python/setup-hook.nix { };
|
python-setup-hook = callPackage ../development/interpreters/python/setup-hook.nix { };
|
||||||
|
|
||||||
python2nix = callPackage ../tools/package-management/python2nix { };
|
|
||||||
|
|
||||||
pythonDocs = recurseIntoAttrs (callPackage ../development/interpreters/python/cpython/docs {});
|
pythonDocs = recurseIntoAttrs (callPackage ../development/interpreters/python/cpython/docs {});
|
||||||
|
|
||||||
pypi2nix = callPackage ../development/tools/pypi2nix {};
|
pypi2nix = callPackage ../development/tools/pypi2nix {};
|
||||||
@ -15577,6 +15577,8 @@ in
|
|||||||
|
|
||||||
libosmocore = callPackage ../applications/misc/libosmocore { };
|
libosmocore = callPackage ../applications/misc/libosmocore { };
|
||||||
|
|
||||||
|
libosmscout = libsForQt5.callPackage ../development/libraries/libosmscout { };
|
||||||
|
|
||||||
libotr = callPackage ../development/libraries/libotr { };
|
libotr = callPackage ../development/libraries/libotr { };
|
||||||
|
|
||||||
libow = callPackage ../development/libraries/libow { };
|
libow = callPackage ../development/libraries/libow { };
|
||||||
@ -15603,6 +15605,8 @@ in
|
|||||||
libpng_apng = libpng.override { apngSupport = true; };
|
libpng_apng = libpng.override { apngSupport = true; };
|
||||||
libpng12 = callPackage ../development/libraries/libpng/12.nix { };
|
libpng12 = callPackage ../development/libraries/libpng/12.nix { };
|
||||||
|
|
||||||
|
libpostal = callPackage ../development/libraries/libpostal { };
|
||||||
|
|
||||||
libpaper = callPackage ../development/libraries/libpaper { };
|
libpaper = callPackage ../development/libraries/libpaper { };
|
||||||
|
|
||||||
libpfm = callPackage ../development/libraries/libpfm { };
|
libpfm = callPackage ../development/libraries/libpfm { };
|
||||||
@ -16497,6 +16501,8 @@ in
|
|||||||
|
|
||||||
portmidi = callPackage ../development/libraries/portmidi {};
|
portmidi = callPackage ../development/libraries/portmidi {};
|
||||||
|
|
||||||
|
prime-server = callPackage ../development/libraries/prime-server { };
|
||||||
|
|
||||||
primesieve = callPackage ../development/libraries/science/math/primesieve { };
|
primesieve = callPackage ../development/libraries/science/math/primesieve { };
|
||||||
|
|
||||||
prison = callPackage ../development/libraries/prison { };
|
prison = callPackage ../development/libraries/prison { };
|
||||||
@ -17330,6 +17336,10 @@ in
|
|||||||
|
|
||||||
vale = callPackage ../tools/text/vale { };
|
vale = callPackage ../tools/text/vale { };
|
||||||
|
|
||||||
|
valhalla = callPackage ../development/libraries/valhalla {
|
||||||
|
boost = boost.override { enablePython = true; python = python38; };
|
||||||
|
};
|
||||||
|
|
||||||
vamp-plugin-sdk = callPackage ../development/libraries/audio/vamp-plugin-sdk { };
|
vamp-plugin-sdk = callPackage ../development/libraries/audio/vamp-plugin-sdk { };
|
||||||
|
|
||||||
vc = callPackage ../development/libraries/vc { };
|
vc = callPackage ../development/libraries/vc { };
|
||||||
@ -22913,6 +22923,8 @@ in
|
|||||||
|
|
||||||
hamster = callPackage ../applications/misc/hamster { };
|
hamster = callPackage ../applications/misc/hamster { };
|
||||||
|
|
||||||
|
hacpack = callPackage ../tools/compression/hacpack { };
|
||||||
|
|
||||||
hashit = callPackage ../tools/misc/hashit { };
|
hashit = callPackage ../tools/misc/hashit { };
|
||||||
|
|
||||||
hactool = callPackage ../tools/compression/hactool { };
|
hactool = callPackage ../tools/compression/hactool { };
|
||||||
@ -24487,6 +24499,8 @@ in
|
|||||||
|
|
||||||
osmo = callPackage ../applications/office/osmo { };
|
osmo = callPackage ../applications/office/osmo { };
|
||||||
|
|
||||||
|
osmscout-server = libsForQt5.callPackage ../applications/misc/osmscout-server { };
|
||||||
|
|
||||||
palemoon = callPackage ../applications/networking/browsers/palemoon {
|
palemoon = callPackage ../applications/networking/browsers/palemoon {
|
||||||
# https://developer.palemoon.org/build/linux/
|
# https://developer.palemoon.org/build/linux/
|
||||||
stdenv = gcc8Stdenv;
|
stdenv = gcc8Stdenv;
|
||||||
|
@ -5097,6 +5097,8 @@ in {
|
|||||||
|
|
||||||
pooch = callPackage ../development/python-modules/pooch { };
|
pooch = callPackage ../development/python-modules/pooch { };
|
||||||
|
|
||||||
|
pook = callPackage ../development/python-modules/pook { };
|
||||||
|
|
||||||
poolsense = callPackage ../development/python-modules/poolsense { };
|
poolsense = callPackage ../development/python-modules/poolsense { };
|
||||||
|
|
||||||
poppler-qt5 = callPackage ../development/python-modules/poppler-qt5 {
|
poppler-qt5 = callPackage ../development/python-modules/poppler-qt5 {
|
||||||
|
Loading…
Reference in New Issue
Block a user