nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7 varint,
8}:
9
10buildPythonPackage rec {
11 pname = "py-multicodec";
12 version = "1.0.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "multiformats";
17 repo = "py-multicodec";
18 tag = "v${version}";
19 hash = "sha256-0s2ICkPkfF+D7HRrnPS2IRm380UhdVg5NCS7VFTP1P4=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 varint
26 ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "multicodec" ];
31
32 meta = {
33 description = "Compact self-describing codecs";
34 homepage = "https://github.com/multiformats/py-multicodec";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ Luflosi ];
37 };
38}