Files
nixpkgs/pkgs/development/python-modules/binary/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
828 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
hatch-vcs,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "binary";
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "ofek";
repo = "binary";
tag = "v${version}";
hash = "sha256-dU+E6MxAmH8AEGTW2/lZmtgRTinKCv9gDiVeb4n78U4=";
};
build-system = [
hatchling
hatch-vcs
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"binary"
"binary.core"
];
meta = {
changelog = "https://github.com/ofek/binary/releases/tag/${src.tag}";
description = "Easily convert between binary and SI units (kibibyte, kilobyte, etc.)";
homepage = "https://github.com/ofek/binary";
license = with lib.licenses; [
asl20
mit
];
maintainers = [ ];
};
}