depot/third_party/nixpkgs/pkgs/development/python-modules/setuptools-rust/default.nix
Default email 1a0302a145 Project import generated by Copybara.
GitOrigin-RevId: 311ceed827f531f88f46222920cd1ebb2c101f73
2021-04-12 20:23:04 +02:00

39 lines
914 B
Nix

{ callPackage
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, semantic-version
, setuptools
, setuptools-scm
, toml
}:
buildPythonPackage rec {
pname = "setuptools-rust";
version = "0.12.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "647009e924f0ae439c7f3e0141a184a69ad247ecb9044c511dabde232d3d570e";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ semantic-version setuptools toml ];
# no tests
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; [ danieldk ];
};
}