Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 57 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, fetchFromGitHub, rustPlatform, pytestCheckHook, pytest-benchmark, nix-update-script,}:let pname = "fastcrc"; version = "0.3.5";
src = fetchFromGitHub { owner = "overcat"; repo = "fastcrc"; tag = "v${version}"; hash = "sha256-Q1R0EgxrfCMn/DxblOAW4Z7YOxpaZPL5Sx8SL/dry98="; };inbuildPythonPackage { inherit pname version src; pyproject = true;
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-dWxQuWV3w1UM8yvLG/9SrJQxSSyWTXV0FWFDKjIHBf0="; };
pythonImportsCheck = [ "fastcrc" ];
nativeCheckInputs = [ pytestCheckHook pytest-benchmark ];
pytestFlags = [ "--benchmark-disable" ];
# Python source files interfere with testing preCheck = '' rm -r fastcrc '';
passthru.updateScript = nix-update-script { };
meta = { description = "Hyper-fast Python module for computing CRC(8, 16, 32, 64) checksum"; homepage = "https://fastcrc.readthedocs.io/en/latest/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ pluiedev ]; };}