Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 60 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, rustPlatform, pytestCheckHook, pytest-benchmark, nix-update-script,}:let pname = "fastcrc"; version = "0.3.2";
src = fetchFromGitHub { owner = "overcat"; repo = "fastcrc"; tag = "v${version}"; hash = "sha256-yLrv/zqsjgygJAIJtztwxlm4s9o9EBVsCyx1jUXd7hA="; };inbuildPythonPackage { inherit pname version src; pyproject = true;
disabled = pythonOlder "3.7";
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-9Vap8E71TkBIf4eIB2lapUqcMukdsHX4LR7U8AD77SU="; };
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 ]; };}