1 { lib, stdenv, fetchFromGitHub, python3, python3Packages }:
3 stdenv.mkDerivation rec {
4 pname = "postiats-utilities";
6 src = fetchFromGitHub {
8 repo = "PostiATS-Utilities";
10 sha256 = "sha256-QeBbv5lwqL2ARjB+RGyBHeuibaxugffBLhC9lYs+5tE=";
14 homepage = "https://github.com/Hibou57/PostiATS-Utilities";
15 license = licenses.bsd2;
16 platforms = platforms.linux;
17 maintainers = [ maintainers.ttuegel ];
20 buildInputs = [ python3 python3Packages.wrapPython ];
23 for f in pats-* postiats/*.py; do
24 sed -i "$f" -e "1 s,python3,python,"
29 libdir="$out/${python3.sitePackages}"
31 cp -r postiats "$libdir"
34 install pats-* "$out/bin"