summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/oslex/default.nix
blob: 5eeec6baab2392a98bf789d49ea5a967a9dc1176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  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 ];
  };
}