mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 10:46:31 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
36 lines
756 B
Nix
36 lines
756 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
nanomsg,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "nanomsg-python";
|
|
version = "1.0.20190114";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|