Files
nixpkgs/pkgs/development/python-modules/oslex/default.nix
2025-05-10 14:55:11 +08:00

40 lines
668 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
mslex,
}:
buildPythonPackage rec {
pname = "oslex";
version = "0.1.3";
pyproject = true;
src = fetchFromGitHub {
owner = "petamas";
repo = "oslex";
tag = "release/v${version}";
hash = "sha256-OcmBtxGS1Cq2kEcxF0Il62LUGbAAcG4lieokr/nK2/4=";
};
build-system = [
hatchling
];
dependencies = [
mslex
];
pythonImportsCheck = [
"oslex"
];
meta = {
description = "OS-independent wrapper for shlex and mslex";
homepage = "https://github.com/petamas/oslex";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yzx9 ];
};
}