depot/third_party/nixpkgs/pkgs/development/python-modules/setuptools-rust/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

39 lines
928 B
Nix

{ callPackage
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, semantic-version
, setuptools
, setuptools-scm
, typing-extensions
, toml
}:
buildPythonPackage rec {
pname = "setuptools-rust";
version = "1.4.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-GP+FCDH1juIdV4OCXJn61jLaIeR2RelCf9fewEgCnnY=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ semantic-version setuptools typing-extensions ];
doCheck = false;
pythonImportsCheck = [ "setuptools_rust" ];
passthru.tests.pyo3 = callPackage ./pyo3-test { };
meta = with lib; {
description = "Setuptools plugin for Rust support";
homepage = "https://github.com/PyO3/setuptools-rust";
changelog = "https://github.com/PyO3/setuptools-rust/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}