Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
764 B · 39 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940{ lib, buildPythonPackage, fetchFromGitHub, hypothesis, pytestCheckHook, setuptools,}:
buildPythonPackage rec { pname = "flatbencode"; version = "0.2.1"; pyproject = true;
src = fetchFromGitHub { owner = "acatton"; repo = "flatbencode"; tag = "v${version}"; hash = "sha256-1/4w41E8IKygJTBcQOexiDytV6BvVBwIjajKz2uCfu8="; };
build-system = [ setuptools ];
nativeCheckInputs = [ hypothesis pytestCheckHook ];
pythonImportsCheck = [ "flatbencode" ];
meta = { description = "Fast, safe and non-recursive implementation of Bittorrent bencoding"; homepage = "https://github.com/acatton/flatbencode"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ ambroisie ]; };}