base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / py / pystring / package.nix
blob4ed250439803be215162018205da341f7bc543a6
1 { stdenv, lib, fetchFromGitHub, fetchpatch, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "pystring";
5   version = "1.1.3";
7   src = fetchFromGitHub {
8     owner = "imageworks";
9     repo = "pystring";
10     rev = "v${version}";
11     sha256 = "1w31pjiyshqgk6zd6m3ab3xfgb0ribi77r6fwrry2aw8w1adjknf";
12   };
14   patches = [
15     (fetchpatch {
16       name = "pystring-cmake-configuration.patch";
17       url = "https://github.com/imageworks/pystring/commit/4f653fc35421129eae8a2c424901ca7170059370.patch";
18       sha256 = "1hynzz76ff4vvmi6kwixsmjswkpyj6s4vv05d7nw0zscj4cdp8k3";
19     })
20   ];
22   nativeBuildInputs = [ cmake ];
24   doCheck = true;
26   meta = with lib; {
27     homepage = "https://github.com/imageworks/pystring/";
28     description = "Collection of C++ functions which match the interface and behavior of python's string class methods using std::string";
29     license = licenses.bsd3;
30     maintainers = [ maintainers.rytone ];
31     platforms = platforms.unix;
32   };