depot/third_party/nixpkgs/pkgs/development/python-modules/sip/default.nix

46 lines
797 B
Nix
Raw Normal View History

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, wheel
, packaging
, ply
, toml
, tomli
}:
buildPythonPackage rec {
pname = "sip";
version = "6.8.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-LtGQSCDLZhtyB+sdzPrr7BpUY9ytkDukSK0ZRVAtCJw=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [ packaging ply toml ] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
# There aren't tests
doCheck = false;
pythonImportsCheck = [ "sipbuild" ];
meta = with lib; {
description = "Creates C++ bindings for Python modules";
homepage = "https://riverbankcomputing.com/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ nrdxp ];
};
}