mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge branch 'master' into staging-next
This commit is contained in:
@@ -6,12 +6,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "adafruit-platformdetect";
|
||||
version = "3.13.0";
|
||||
version = "3.13.1";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Adafruit-PlatformDetect";
|
||||
inherit version;
|
||||
sha256 = "sha256-FlPd3bj2sU52nc2+XohNhBWRa+1Dr/SyaiSusxX6PeE=";
|
||||
sha256 = "sha256-SUK2EpOHCFWm4zV+yRtzz81B0GMcwRsVnTOh2msSsSk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
, buildPythonPackage
|
||||
, isPy27
|
||||
, fetchPypi
|
||||
, python
|
||||
, ansible
|
||||
, setuptools-scm
|
||||
, ansible-base
|
||||
, enrich
|
||||
, flaky
|
||||
, pyyaml
|
||||
@@ -27,10 +27,12 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-tnuWKEB66bwVuwu3H3mHG99ZP+/msGhMDMRL5fyQgD8=";
|
||||
};
|
||||
|
||||
buildInputs = [ python ];
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ansible
|
||||
ansible-base
|
||||
enrich
|
||||
flaky
|
||||
pyyaml
|
||||
@@ -65,7 +67,7 @@ buildPythonPackage rec {
|
||||
preCheck = ''
|
||||
# ansible wants to write to $HOME and crashes if it can't
|
||||
export HOME=$(mktemp -d)
|
||||
export PATH=$PATH:${lib.makeBinPath [ ansible ]}
|
||||
export PATH=$PATH:${lib.makeBinPath [ ansible-base ]}
|
||||
|
||||
# create a working ansible-lint executable
|
||||
export PATH=$PATH:$PWD/src/ansiblelint
|
||||
@@ -82,7 +84,7 @@ buildPythonPackage rec {
|
||||
"test_prerun_reqs_v2"
|
||||
];
|
||||
|
||||
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ansible ]}" ];
|
||||
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ansible-base ]}" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ansible-community/ansible-lint";
|
||||
|
||||
@@ -70,7 +70,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Radically simple IT automation";
|
||||
homepage = "Radically simple IT automation";
|
||||
homepage = "http://www.ansible.com";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||
, requests
|
||||
{ buildPythonPackage
|
||||
, cryptography
|
||||
, fetchPypi
|
||||
, lib
|
||||
, pythonOlder
|
||||
, protobuf
|
||||
, pycryptodome
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -14,11 +18,17 @@ buildPythonPackage rec {
|
||||
sha256 = "0ampvsv97r3hy1cakif4kmyk1ynf3scbvh4fbk02x7xrxn4kl38w";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests protobuf pycryptodome ];
|
||||
# package doesn't contain unit tests
|
||||
# scripts in ./test require networking
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "gpapi.googleplay" ];
|
||||
|
||||
propagatedBuildInputs = [ cryptography protobuf pycryptodome requests ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/NoMore201/googleplay-api";
|
||||
license = licenses.gpl3;
|
||||
license = licenses.gpl3Only;
|
||||
description = "Google Play Unofficial Python API";
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
@@ -49,6 +50,9 @@ buildPythonPackage {
|
||||
# This test try to remove a dicom inside $HOME/.pydicom/data/ and download it again.
|
||||
disabledTests = [
|
||||
"test_fetch_data_files"
|
||||
] ++ lib.optionals stdenv.isAarch64 [
|
||||
# https://github.com/pydicom/pydicom/issues/1386
|
||||
"test_array"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -1,22 +1,14 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pkg-config, fuse3, trio, pytestCheckHook, pytest-trio, which }:
|
||||
{ lib, buildPythonPackage, fetchPypi, pkg-config, fuse3, trio, pytestCheckHook, pytest-trio, which }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyfuse3";
|
||||
version = "3.1.1";
|
||||
version = "3.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9feb42a8639dc4815522ee6af6f7221552cfd2df1c7a7e9df96767be65e18667";
|
||||
sha256 = "45f0053ad601b03a36e2c283a5271403674245a66a0daf50e3deaab0ea4fa82f";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fixes tests with pytest 6, to be removed in next stable version
|
||||
(fetchpatch {
|
||||
url = "https://github.com/libfuse/pyfuse3/commit/0070eddfc33fc2fba8eb4fe9353a2d2fa1ae575b.patch";
|
||||
sha256 = "0lb4x1j31ihs3qkn61x41k2vqwcjl2fp1c2qx2jg9br6yqhjmg3b";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ fuse3 ];
|
||||
@@ -36,7 +28,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Python 3 bindings for libfuse 3 with async I/O support";
|
||||
homepage = "https://github.com/libfuse/pyfuse3";
|
||||
license = licenses.gpl2;
|
||||
license = licenses.lgpl2Plus;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,56 +3,35 @@
|
||||
, fetchFromGitHub
|
||||
, taglib
|
||||
, cython
|
||||
, pytest
|
||||
, glibcLocales
|
||||
, fetchpatch
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytaglib";
|
||||
version = "1.4.5";
|
||||
pname = "pytaglib";
|
||||
version = "1.4.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "supermihi";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1gvvadlgk8ny8bg76gwvvfcwp1nfgrjphi60h5f9ha7h5ff1g2wb";
|
||||
sha256 = "sha256-UAWXR1MCxEB48n7oQE+L545F+emlU3HErzLX6YTRteg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fix tests on python 2.7
|
||||
(fetchpatch {
|
||||
url = "https://github.com/supermihi/pytaglib/commit/0c4ae750fcd5b18d2553975c7e3e183e9dca5bf1.patch";
|
||||
sha256 = "1kv3c68vimx5dc8aacvzphiaq916avmprxddi38wji8p2ql6vngj";
|
||||
})
|
||||
|
||||
# properly install pyprinttags
|
||||
(fetchpatch {
|
||||
url = "https://github.com/supermihi/pytaglib/commit/ba7a1406ddf35ddc41ed57f1c8d1f2bc2ed2c93a.patch";
|
||||
sha256 = "0pi0dcq7db5fd3jnbwnfsfsgxvlhnm07z5yhpp93shk0s7ci2bwp";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://github.com/supermihi/pytaglib/commit/28772f6f94d37f05728071381a0fa04c6a14783a.patch";
|
||||
sha256 = "0h259vzj1l0gpibdf322yclyd10x5rh1anzhsjj2ghm6rj6q0r0m";
|
||||
})
|
||||
buildInputs = [
|
||||
cython
|
||||
taglib
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "'pytest-runner', " ""
|
||||
'';
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
buildInputs = [ taglib cython ];
|
||||
pythonImportsCheck = [ "taglib" ];
|
||||
|
||||
checkInputs = [ pytest glibcLocales ];
|
||||
|
||||
checkPhase = ''
|
||||
LC_ALL=en_US.utf-8 pytest .
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "Python bindings for the Taglib audio metadata library";
|
||||
homepage = "https://github.com/supermihi/pytaglib";
|
||||
description = "Python 2.x/3.x bindings for the Taglib audio metadata library";
|
||||
license = lib.licenses.gpl3;
|
||||
maintainers = [ lib.maintainers.mrkkrp ];
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ mrkkrp ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -10,23 +10,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rfc3339-validator";
|
||||
version = "0.1.3";
|
||||
version = "0.1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "rfc3339_validator";
|
||||
inherit version;
|
||||
sha256 = "7a578aa0740e9ee2b48356fe1f347139190c4c72e27f303b3617054efd15df32";
|
||||
sha256 = "0srg0b89aikzinw72s433994k5gv5lfyarq1adhas11kz6yjm2hk";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fixes test failure on darwin. Filed upstream: https://github.com/naimetti/rfc3339-validator/pull/3.
|
||||
# Not yet merged.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/rmcgibbo/rfc3339-validator/commit/4b6bb62c30bd158d3b4663690dcba1084ac31770.patch";
|
||||
sha256 = "0h9k82hhmp2xfzn49n3i47ws3rpm9lvfs2rjrds7hgx5blivpwl6";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
checkInputs = [ pytestCheckHook hypothesis strict-rfc3339 ];
|
||||
|
||||
@@ -17,6 +17,8 @@ buildPythonPackage {
|
||||
sha256 = "jNu6qm8Q/UyJVaCqwFOPX02xAR5DwvCK3PaH6Fvmakk=";
|
||||
};
|
||||
|
||||
patches = [ ./telfhash-new-tlsh-hash.patch ];
|
||||
|
||||
# The tlsh library's name is just "tlsh"
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt --replace "python-tlsh" "tlsh"
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
diff --git a/telfhash/grouping.py b/telfhash/grouping.py
|
||||
index c62f8d9..4ee9f0b 100644
|
||||
--- a/telfhash/grouping.py
|
||||
+++ b/telfhash/grouping.py
|
||||
@@ -32,10 +32,10 @@ import tlsh
|
||||
def get_combination(telfhash_data):
|
||||
|
||||
#
|
||||
- # TLSH hash is 70 characters long. if the telfhash is not 70
|
||||
+ # The new TLSH hash is 72 characters long. if the telfhash is not 72
|
||||
# characters in length, exclude from the list
|
||||
#
|
||||
- files_list = [x for x in list(telfhash_data.keys()) if telfhash_data[x]["telfhash"] is not None and len(telfhash_data[x]["telfhash"]) == 70]
|
||||
+ files_list = [x for x in list(telfhash_data.keys()) if telfhash_data[x]["telfhash"] is not None and len(telfhash_data[x]["telfhash"]) == 72]
|
||||
|
||||
#
|
||||
# get the combination of all the possible pairs of filenames
|
||||
diff --git a/telfhash/telfhash.py b/telfhash/telfhash.py
|
||||
index f2bbd25..c6e346c 100755
|
||||
--- a/telfhash/telfhash.py
|
||||
+++ b/telfhash/telfhash.py
|
||||
@@ -132,7 +132,7 @@ def get_hash(symbols_list):
|
||||
symbol_string = ",".join(symbols_list)
|
||||
encoded_symbol_string = symbol_string.encode("ascii")
|
||||
|
||||
- return tlsh.forcehash(encoded_symbol_string).lower()
|
||||
+ return tlsh.forcehash(encoded_symbol_string)
|
||||
|
||||
|
||||
def elf_get_imagebase(elf):
|
||||
Reference in New Issue
Block a user