mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-13 20:33:27 +00:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
cython,
|
|
poetry-core,
|
|
setuptools,
|
|
|
|
# propagates
|
|
cryptography,
|
|
|
|
# tests
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
let
|
|
pname = "chacha20poly1305-reuseable";
|
|
version = "0.13.2";
|
|
in
|
|
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdraco";
|
|
repo = "chacha20poly1305-reuseable";
|
|
tag = "v${version}";
|
|
hash = "sha256-i6bhqfYo+gFTf3dqOBSQqGN4WPqbUR05StdwZvrVckI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
poetry-core
|
|
setuptools
|
|
];
|
|
|
|
pythonRelaxDeps = [ "cryptography" ];
|
|
|
|
propagatedBuildInputs = [ cryptography ];
|
|
|
|
pythonImportsCheck = [ "chacha20poly1305_reuseable" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
description = "ChaCha20Poly1305 that is reuseable for asyncio";
|
|
homepage = "https://github.com/bdraco/chacha20poly1305-reuseable";
|
|
changelog = "https://github.com/bdraco/chacha20poly1305-reuseable/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ hexa ];
|
|
};
|
|
}
|