mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00

Diff: https://github.com/dimastbk/python-calamine/compare/refs/tags/v0.3.1...v0.3.2 Changelog: https://github.com/dimastbk/python-calamine/releases/tag/v0.3.2
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cargo,
|
|
fetchFromGitHub,
|
|
libiconv,
|
|
packaging,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
rustc,
|
|
rustPlatform,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-calamine";
|
|
version = "0.3.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dimastbk";
|
|
repo = "python-calamine";
|
|
tag = "v${version}";
|
|
hash = "sha256-XNTG3Vo//cFvrl3/FXaVmO0PfwCXTauvOwIP0nsjlHg=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"calamine-0.26.1" = "sha256-qlquNX13PQmzuzl+URo7cFDtNODzwIUQXIK8bqZ2iqc=";
|
|
};
|
|
};
|
|
|
|
buildInputs = [ libiconv ];
|
|
|
|
build-system = [
|
|
cargo
|
|
poetry-core
|
|
rustPlatform.cargoSetupHook
|
|
rustPlatform.maturinBuildHook
|
|
rustc
|
|
];
|
|
|
|
dependencies = [ packaging ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "python_calamine" ];
|
|
|
|
meta = {
|
|
description = "Python binding for calamine";
|
|
homepage = "https://github.com/dimastbk/python-calamine";
|
|
changelog = "https://github.com/dimastbk/python-calamine/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "python-calamine";
|
|
};
|
|
}
|