32 lines
644 B
Nix
32 lines
644 B
Nix
{
|
|
callPackage,
|
|
fetchPypi,
|
|
python3Packages,
|
|
xonsh
|
|
}:
|
|
let
|
|
|
|
# Create a version of xonsh as a python package,
|
|
# matching the version installed on the syste,
|
|
xonsh-python = callPackage ./xonsh-python-package.nix { inherit xonsh; };
|
|
|
|
in python3Packages.buildPythonPackage rec {
|
|
pname = "xontrib-prompt-starship";
|
|
version = "0.3.6";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-e0Qg9JbekjmTVTwdxQlEM4GW6YLUjWUhMulnKA8Bhnw=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
buildInputs = with python3Packages; [
|
|
xonsh-python
|
|
pdm-pep517
|
|
];
|
|
}
|