nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 click,
7}:
8
9buildPythonPackage rec {
10 pname = "userpath";
11 version = "1.9.2";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-bFIojasGklfMgxhG0V1IEzUiRV1Gd+5pqXgfEdvv2BU=";
17 };
18
19 nativeBuildInputs = [ hatchling ];
20
21 propagatedBuildInputs = [ click ];
22
23 # Test suite is difficult to emulate in sandbox due to shell manipulation
24 doCheck = false;
25
26 pythonImportsCheck = [ "userpath" ];
27
28 meta = {
29 description = "Cross-platform tool for adding locations to the user PATH";
30 mainProgram = "userpath";
31 homepage = "https://github.com/ofek/userpath";
32 changelog = "https://github.com/ofek/userpath/releases/tag/v${version}";
33 license = with lib.licenses; [
34 asl20
35 mit
36 ];
37 maintainers = with lib.maintainers; [ yshym ];
38 };
39}