commit
fda107c3ec
@ -1,15 +0,0 @@ |
||||
diff --color -Naur dbus-1.12.20-original/doc/Makefile.in dbus-1.12.20-hacked2/doc/Makefile.in
|
||||
--- dbus-1.12.20-original/doc/Makefile.in 2020-07-02 12:10:41.000000000 +0200
|
||||
+++ dbus-1.12.20-hacked2/doc/Makefile.in 2020-11-07 09:57:15.297694773 +0100
|
||||
@@ -870,8 +870,10 @@
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
+# 'generate.consistent.ids=1' ensures reproducible docs, for further details see
|
||||
+# http://docbook.sourceforge.net/release/xsl/current/doc/html/generate.consistent.ids.html
|
||||
@DBUS_XML_DOCS_ENABLED_TRUE@%.html: %.xml
|
||||
-@DBUS_XML_DOCS_ENABLED_TRUE@ $(XMLTO) html-nochunks $<
|
||||
+@DBUS_XML_DOCS_ENABLED_TRUE@ $(XMLTO) --stringparam generate.consistent.ids=1 html-nochunks $<
|
||||
|
||||
@DBUS_XML_DOCS_ENABLED_TRUE@%.1: %.1.xml
|
||||
@DBUS_XML_DOCS_ENABLED_TRUE@ $(XMLTO) man $<
|
Binary file not shown.
@ -1,24 +0,0 @@ |
||||
{ stdenv, lib, buildPythonPackage, fetchPypi, pytz, pytestCheckHook, freezegun }: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "Babel"; |
||||
version = "2.9.1"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "bc0c176f9f6a994582230df350aa6e05ba2ebe4b3ac317eab29d9be5d2768da0"; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ pytz ]; |
||||
|
||||
checkInputs = [ pytestCheckHook freezegun ]; |
||||
|
||||
doCheck = !stdenv.isDarwin; |
||||
|
||||
meta = with lib; { |
||||
homepage = "http://babel.edgewall.org"; |
||||
description = "A collection of tools for internationalizing Python applications"; |
||||
license = licenses.bsd3; |
||||
maintainers = with maintainers; [ ]; |
||||
}; |
||||
} |
@ -1,28 +0,0 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, docutils |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "Pygments"; |
||||
version = "2.11.2"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "4e426f72023d88d03b2fa258de560726ce890ff3b630f88c21cbb8b2503b8c6a"; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ docutils ]; |
||||
|
||||
# Circular dependency with sphinx |
||||
doCheck = false; |
||||
pythonImportsCheck = [ "pygments" ]; |
||||
|
||||
meta = { |
||||
homepage = "https://pygments.org/"; |
||||
description = "A generic syntax highlighter"; |
||||
license = lib.licenses.bsd2; |
||||
maintainers = with lib.maintainers; [ ]; |
||||
}; |
||||
} |
@ -0,0 +1,25 @@ |
||||
{ stdenv, lib, buildPythonPackage, fetchPypi, pytz, pytestCheckHook, freezegun }: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "babel"; |
||||
version = "2.10.1"; |
||||
|
||||
src = fetchPypi { |
||||
pname = "Babel"; |
||||
inherit version; |
||||
sha256 = "sha256-mK6soIYTPvs+HiqtA5aYdJDIQlkp3bz+BVAYT9xUzRM="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ pytz ]; |
||||
|
||||
checkInputs = [ pytestCheckHook freezegun ]; |
||||
|
||||
doCheck = !stdenv.isDarwin; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://babel.pocoo.org/"; |
||||
description = "Collection of internationalizing tools"; |
||||
license = licenses.bsd3; |
||||
maintainers = with maintainers; [ SuperSandro2000 ]; |
||||
}; |
||||
} |
@ -0,0 +1,29 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, pytestCheckHook |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "func-timeout"; |
||||
version = "4.3.5"; |
||||
|
||||
src = fetchPypi { |
||||
pname = "func_timeout"; |
||||
inherit version; |
||||
sha256 = "74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd"; |
||||
}; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "func_timeout" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Allows you to specify timeouts when calling any existing function. Also provides support for stoppable-threads"; |
||||
homepage = "https://github.com/kata198/func_timeout"; |
||||
license = licenses.lgpl3Only; |
||||
maintainers = with maintainers; [ SuperSandro2000 ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, pip |
||||
, pretend |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, virtualenv |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "pip-api"; |
||||
version = "0.0.29"; |
||||
format = "setuptools"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
hash = "sha256-9wFYTrHD4BAhyEb4nWKauTc7ZiTwYmdXd0rVT8TClXE="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ |
||||
pip |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pretend |
||||
pytestCheckHook |
||||
virtualenv |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"pip_api" |
||||
]; |
||||
|
||||
disabledTests = [ |
||||
"test_hash" |
||||
"test_hash_default_algorithm_is_256" |
||||
"test_installed_distributions" |
||||
"test_invoke_install" |
||||
"test_invoke_uninstall" |
||||
"test_isolation" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Importable pip API"; |
||||
homepage = "https://github.com/di/pip-api"; |
||||
license = with licenses; [ mit ]; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -1,38 +0,0 @@ |
||||
commit d8e0bac0c0d831510683939ec7a7b5bd72192423
|
||||
Author: Frederik Rietdijk <fridh@fridh.nl>
|
||||
Date: Sat Jan 5 11:38:28 2019 +0100
|
||||
|
||||
Have a top-level attribute for the executable
|
||||
|
||||
diff --git a/pkgconfig/pkgconfig.py b/pkgconfig/pkgconfig.py
|
||||
index 3deb97f..e7c5561 100644
|
||||
--- a/pkgconfig/pkgconfig.py
|
||||
+++ b/pkgconfig/pkgconfig.py
|
||||
@@ -30,6 +30,9 @@ from functools import wraps
|
||||
from subprocess import call, PIPE, Popen
|
||||
|
||||
|
||||
+PKG_CONFIG_EXE = "pkg-config"
|
||||
+
|
||||
+
|
||||
def _compare_versions(v1, v2):
|
||||
"""
|
||||
Compare two version strings and return -1, 0 or 1 depending on the equality
|
||||
@@ -65,7 +68,7 @@ def _convert_error(func):
|
||||
|
||||
@_convert_error
|
||||
def _query(package, *options):
|
||||
- pkg_config_exe = os.environ.get('PKG_CONFIG', None) or 'pkg-config'
|
||||
+ pkg_config_exe = os.environ.get('PKG_CONFIG', None) or PKG_CONFIG_EXE
|
||||
cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
|
||||
proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
|
||||
out, err = proc.communicate()
|
||||
@@ -84,7 +87,7 @@ def exists(package):
|
||||
|
||||
If ``pkg-config`` not on path, raises ``EnvironmentError``.
|
||||
"""
|
||||
- pkg_config_exe = os.environ.get('PKG_CONFIG', None) or 'pkg-config'
|
||||
+ pkg_config_exe = os.environ.get('PKG_CONFIG', None) or PKG_CONFIG_EXE
|
||||
cmd = '{0} --exists {1}'.format(pkg_config_exe, package).split()
|
||||
return call(cmd) == 0
|
||||
|
@ -1,19 +1,36 @@ |
||||
{ lib, buildPythonPackage, fetchPypi }: |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "pretend"; |
||||
version = "1.0.9"; |
||||
format = "setuptools"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "c90eb810cde8ebb06dafcb8796f9a95228ce796531bc806e794c2f4649aa1b10"; |
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "alex"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-OqMfeIMFNBBLq6ejR3uOCIHZ9aA4zew7iefVlAsy1JQ="; |
||||
}; |
||||
|
||||
# No tests in archive |
||||
doCheck = false; |
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"pretend" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Module for stubbing"; |
||||
homepage = "https://github.com/alex/pretend"; |
||||
license = licenses.bsd3; |
||||
maintainers = with maintainers; [ ]; |
||||
}; |
||||
} |
||||
|
@ -0,0 +1,51 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, docutils |
||||
, lxml |
||||
, pytestCheckHook |
||||
, wcag-contrast-ratio |
||||
}: |
||||
|
||||
let pygments = buildPythonPackage |
||||
rec { |
||||
pname = "pygments"; |
||||
version = "2.12.0"; |
||||
|
||||
src = fetchPypi { |
||||
pname = "Pygments"; |
||||
inherit version; |
||||
sha256 = "sha256-XrEWEY+WEv8e6JrJZDe7a0no8E2KE7UUuib2ICCOJus="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ |
||||
docutils |
||||
]; |
||||
|
||||
# circular dependencies if enabled by default |
||||
doCheck = false; |
||||
checkInputs = [ |
||||
lxml |
||||
pytestCheckHook |
||||
wcag-contrast-ratio |
||||
]; |
||||
|
||||
disabledTestPaths = [ |
||||
# 5 lines diff, including one nix store path in 20000+ lines |
||||
"tests/examplefiles/bash/ltmain.sh" |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "pygments" ]; |
||||
|
||||
passthru.tests = { |
||||
check = pygments.overridePythonAttrs (_: { doCheck = true; }); |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://pygments.org/"; |
||||
description = "A generic syntax highlighter"; |
||||
license = licenses.bsd2; |
||||
maintainers = with maintainers; [ SuperSandro2000 ]; |
||||
}; |
||||
}; |
||||
in pygments |
@ -0,0 +1,34 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, hypothesis |
||||
, pytestCheckHook |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "wcag-contrast-ratio"; |
||||
version = "0.9"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "sha256-aRkrjlwKfQ3F/xGH7rPjmBQWM6S95RxpyH9Y/oftNhw="; |
||||
}; |
||||
|
||||
checkInputs = [ |
||||
hypothesis |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pytestFlagsArray = [ |
||||
"test.py" |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "wcag_contrast_ratio" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Library for computing contrast ratios, as required by WCAG 2.0"; |
||||
homepage = "https://github.com/gsnedders/wcag-contrast-ratio"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ SuperSandro2000 ]; |
||||
}; |
||||
} |
@ -0,0 +1,83 @@ |
||||
{ lib |
||||
, fetchFromGitHub |
||||
, fetchpatch |
||||
, python3 |
||||
}: |
||||
|
||||
let |
||||
py = python3.override { |
||||
packageOverrides = self: super: { |
||||
|
||||
# ansible doesn't support resolvelib > 0.6.0 and can't have an override |
||||
resolvelib = super.resolvelib.overridePythonAttrs (oldAttrs: rec { |
||||
version = "0.8.1"; |
||||
src = fetchFromGitHub { |
||||
owner = "sarugaku"; |
||||
repo = "resolvelib"; |
||||
rev = version; |
||||
sha256 = "1qpd0gg9yl0kbamlgjs9pkxd39kx511kbc92civ77v0ka5sw8ca0"; |
||||
}; |
||||
}); |
||||
}; |
||||
}; |
||||
in |
||||
with py.pkgs; |
||||
|
||||
buildPythonApplication rec { |
||||
pname = "pip-audit"; |
||||
version = "2.2.1"; |
||||
format = "setuptools"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "trailofbits"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-ji61783imVlvoBaDMTxQwbf1L1G4lJbOFZ1FjcNOT/8="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ |
||||
cachecontrol |
||||
cyclonedx-python-lib |
||||
html5lib |
||||
packaging |
||||
pip-api |
||||
progress |
||||
resolvelib |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pretend |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"pip_audit" |
||||
]; |
||||
|
||||
preCheck = '' |
||||
export HOME=$(mktemp -d); |
||||
''; |
||||
|
||||
disabledTestPaths = [ |
||||
# Tests require network access |
||||
"test/dependency_source/test_requirement.py" |
||||
"test/dependency_source/test_resolvelib.py" |
||||
"test/service/test_pypi.py" |
||||
"test/service/test_osv.py" |
||||
]; |
||||
|
||||
disabledTests = [ |
||||
# Tests requrire network access |
||||
"test_get_pip_cache" |
||||
"test_virtual_env" |
||||
"test_pyproject_source" |
||||
"test_pyproject_source_duplicate_deps" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Tool for scanning Python environments for known vulnerabilities"; |
||||
homepage = "https://github.com/trailofbits/pip-audit"; |
||||
license = with licenses; [ asl20 ]; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue