Files
nixpkgs/pkgs/development/python-modules/nanomsg-python/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
804 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nanomsg,
setuptools,
pythonOlder,
}:
buildPythonPackage {
pname = "nanomsg-python";
version = "1.0.20190114";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tonysimpson";
repo = "nanomsg-python";
rev = "3acd9160f90f91034d4a43ce603aaa19fbaf1f2e";
hash = "sha256-NHurZWiW/Csp6NyuSV+oD16+L2uPUZWGzb2nWi9b/uE=";
};
build-system = [ setuptools ];
buildInputs = [ nanomsg ];
# Tests requires network connections
doCheck = false;
pythonImportsCheck = [ "nanomsg" ];
meta = {
description = "Bindings for nanomsg";
homepage = "https://github.com/tonysimpson/nanomsg-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bgamari ];
};
}